diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-11-14 11:38:36 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-11-14 11:38:36 +0100 |
commit | f78a0ee51dec80ff2b1319aa3ca14ab7e95baa78 (patch) | |
tree | 46df0694e8c3eb9ae3cfd03d6b2bdc7bcf289ee8 | |
parent | 6b82274f126f62148c089f7d0ce810f08e45d79c (diff) |
afm-run: minor fixes
fix a wrong comment of the returned value.
fix the location of the variable runner (probablyy a cut&paste error)
Change-Id: If8320410ff81576a72746cd703e8b1207672eaa2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afm-run.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afm-run.c b/src/afm-run.c index 131f9cb..8e76a99 100644 --- a/src/afm-run.c +++ b/src/afm-run.c @@ -496,12 +496,12 @@ error: * runner. This is made using json_object_get. Thus be aware * that further modifications to 'appli' might create errors. * - * Returns 0 in case of success or -1 in case of error + * Returns the runid in case of success or -1 in case of error */ int afm_run_start(struct json_object *appli, enum afm_launch_mode mode, char **uri) { - static struct apprun *runner; + struct apprun *runner; struct afm_launch_desc desc; int rc; sigset_t saved, blocked; |