From: Semun Lee Date: Thu, 30 Nov 2017 07:36:41 +0000 (+0900) Subject: Fix mismatched return type for get_restriction_mode X-Git-Tag: accepted/tizen/unified/20171214.050245~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fpkgmgr-server.git;a=commitdiff_plain;h=d60fc69df12e0c280ca5ef2ef21425c165519121 Fix mismatched return type for get_restriction_mode Change-Id: If3c0a5614c5dd5d77c0d7af52b869e9a44b997ba Signed-off-by: Semun Lee --- diff --git a/src/request.c b/src/request.c index 7bb0346..e973f10 100644 --- a/src/request.c +++ b/src/request.c @@ -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; }