diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-02-11 16:14:16 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-02-11 16:14:16 +0100 |
commit | 6b3c3b1916b0af0494041c12a3c86819e441105e (patch) | |
tree | 4eac9853f62456d69211321ef7cb8c3819c20cdd /src/afm-system-daemon.c | |
parent | bf650bc39188c86cec8a11097f2c341e3f1b54b1 (diff) |
utils-json: refactoring
Change-Id: Ie8b49279e727afdbce7b9ea74c767d560c93af32
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-system-daemon.c')
-rw-r--r-- | src/afm-system-daemon.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/afm-system-daemon.c b/src/afm-system-daemon.c index 65e7e33..6a242ea 100644 --- a/src/afm-system-daemon.c +++ b/src/afm-system-daemon.c @@ -82,10 +82,10 @@ static void on_install(struct jreq *jreq, struct json_object *req) force = 0; break; case json_type_object: - wgtfile = j_get_string(req, "wgt", NULL); + wgtfile = j_string_at(req, "wgt", NULL); if (wgtfile != NULL) { - root = j_get_string(req, "root", rootdir); - force = j_get_boolean(req, "force", 0); + root = j_string_at(req, "root", rootdir); + force = j_boolean_at(req, "force", 0); break; } default: @@ -127,9 +127,9 @@ static void on_uninstall(struct jreq *jreq, struct json_object *req) root = rootdir; break; case json_type_object: - idaver = j_get_string(req, "id", NULL); + idaver = j_string_at(req, "id", NULL); if (idaver != NULL) { - root = j_get_string(req, "root", rootdir); + root = j_string_at(req, "root", rootdir); break; } default: |