Fix mismatched return type for get_restriction_mode 09/162309/1
authorSemun Lee <semun.lee@samsung.com>
Thu, 30 Nov 2017 07:36:41 +0000 (16:36 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 30 Nov 2017 07:36:41 +0000 (16:36 +0900)
Change-Id: If3c0a5614c5dd5d77c0d7af52b869e9a44b997ba
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/request.c

index 7bb0346..e973f10 100644 (file)
@@ -1650,7 +1650,7 @@ static int __handle_request_get_restriction_mode(uid_t caller_uid,
        g_variant_get(parameters, "(us)", &target_uid, &pkgid);
        if (target_uid == (uid_t)-1 || pkgid == NULL) {
                g_dbus_method_invocation_return_value(invocation,
-                               g_variant_new("(i)", PKGMGR_R_ECOMM));
+                               g_variant_new("(ii)", -1, PKGMGR_R_ECOMM));
                return -1;
        }