Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
utils-json: refactoring
[src/app-framework-main.git]
/
src
/
afm-system-daemon.c
diff --git
a/src/afm-system-daemon.c
b/src/afm-system-daemon.c
index
65e7e33
..
6a242ea
100644
(file)
--- 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:
force = 0;
break;
case json_type_object:
- wgtfile = j_
get_string
(req, "wgt", NULL);
+ wgtfile = j_
string_at
(req, "wgt", NULL);
if (wgtfile != 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:
break;
}
default:
@@
-127,9
+127,9
@@
static void on_uninstall(struct jreq *jreq, struct json_object *req)
root = rootdir;
break;
case json_type_object:
root = rootdir;
break;
case json_type_object:
- idaver = j_
get_string
(req, "id", NULL);
+ idaver = j_
string_at
(req, "id", NULL);
if (idaver != NULL) {
if (idaver != NULL) {
- root = j_
get_string
(req, "root", rootdir);
+ root = j_
string_at
(req, "root", rootdir);
break;
}
default:
break;
}
default: