diff options
Diffstat (limited to 'src/afm-system-daemon.c')
-rw-r--r-- | src/afm-system-daemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afm-system-daemon.c b/src/afm-system-daemon.c index 1152281..25d9456 100644 --- a/src/afm-system-daemon.c +++ b/src/afm-system-daemon.c @@ -66,7 +66,7 @@ const char error_bad_request[] = "\"bad request\""; const char error_not_found[] = "\"not found\""; const char error_cant_start[] = "\"can't start\""; -static void on_install(struct jreq *jreq, struct json_object *req) +static void on_install(struct jreq *jreq, struct json_object *req, void *unused) { const char *wgtfile; const char *root; @@ -113,7 +113,7 @@ static void on_install(struct jreq *jreq, struct json_object *req) } } -static void on_uninstall(struct jreq *jreq, struct json_object *req) +static void on_uninstall(struct jreq *jreq, struct json_object *req, void *unused) { const char *idaver; const char *root; @@ -222,8 +222,8 @@ int main(int ac, char **av) ERROR("create_jbus failed"); return 1; } - if(jbus_add_service_j(jbus, "install", on_install) - || jbus_add_service_j(jbus, "uninstall", on_uninstall)) { + if(jbus_add_service_j(jbus, "install", on_install, NULL) + || jbus_add_service_j(jbus, "uninstall", on_uninstall, NULL)) { ERROR("adding services failed"); return 1; } |