summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-14 12:02:51 +0800
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-14 12:02:51 +0800
commit899bf5292119f8ce975b4d6bb6d17fa7fa23a786 (patch)
treeff051b6ab01c806b2ace0891f8975ffb2ab8a28d /binding
parent722cbbb6fcc523f1882233e349fb6a6b5f30acb9 (diff)
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')
-rw-r--r--binding/iiodevices-binding.c2
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;