diff options
author | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-11-14 12:02:51 +0800 |
---|---|---|
committer | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-11-14 12:02:51 +0800 |
commit | 899bf5292119f8ce975b4d6bb6d17fa7fa23a786 (patch) | |
tree | ff051b6ab01c806b2ace0891f8975ffb2ab8a28d /binding/iiodevices-binding.c | |
parent | 722cbbb6fcc523f1882233e349fb6a6b5f30acb9 (diff) |
fix(iiodevices-binding.c): use afb_event_is_valid to check eventicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.58.99.48.99.38.99.28.99.1
it will fix error of make:
agl-service-iiodevices/binding/iiodevices-binding.c:103:15:
error: ‘e->event’ is a pointer; did you mean to use ‘->’?
if (!e->event.closure) { free(e); return NULL; }
Bug-AGL: SPEC-2807
Change-Id: Id74ddff09b660e9dcdab046caf4770e31bfff39b
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'binding/iiodevices-binding.c')
-rw-r--r-- | binding/iiodevices-binding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/iiodevices-binding.c b/binding/iiodevices-binding.c index b5a7588..e48a26a 100644 --- a/binding/iiodevices-binding.c +++ b/binding/iiodevices-binding.c @@ -100,7 +100,7 @@ static struct afb_event* event_add(const char *tag) /* make the event */ e->event = afb_daemon_make_event(tag); - if (!e->event.closure) { free(e); return NULL; } + if (!afb_event_is_valid(e->event)) { free(e); return NULL; } /* link */ e->next = events; |