diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-22 10:51:59 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-09 14:08:32 +0200 |
commit | f23bc8bdcb4420b9a7ee825a6fdf7a2c47680f5f (patch) | |
tree | 697fd6a99a962458f1e56392452c0b158670249d | |
parent | 1e9c33f9a853aa7b5e89b32fecf54835a04b41ba (diff) |
afb-export: cleanup of unused async
Change-Id: I69e02e32444fe460219d849b26beb3db36ab5467
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-export.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/afb-export.c b/src/afb-export.c index fb9bb747..adc840f0 100644 --- a/src/afb-export.c +++ b/src/afb-export.c @@ -408,7 +408,6 @@ struct call_req struct jobloop *jobloop; struct json_object *result; int status; - int async; }; /* @@ -532,7 +531,6 @@ static void svc_call(void *closure, const char *api, const char *verb, struct js callreq->jobloop = NULL; callreq->callback = callback; callreq->closure = cbclosure; - callreq->async = 1; /* terminates and frees ressources if needed */ afb_xreq_process(&callreq->xreq, export->apiset); @@ -560,7 +558,6 @@ static int svc_call_sync(void *closure, const char *api, const char *verb, struc callreq->callback = NULL; callreq->result = NULL; callreq->status = 0; - callreq->async = 0; afb_xreq_unhooked_addref(&callreq->xreq); /* avoid early callreq destruction */ rc = jobs_enter(NULL, 0, callreq_sync_enter, callreq); if (rc >= 0) |