From ce716acc1f4dc9502c479d040a0f86d36739592c Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 29 Aug 2016 20:43:30 +0900 Subject: [PATCH] Adjust coding style Change-Id: Id2d1689c337fbba094553153e4440bef0f7b2b52 Signed-off-by: Hwankyu Jhun --- include/common.h | 2 -- src/common.c | 3 ++- src/debug-launchpad.c | 4 ++-- src/debug_util.c | 1 + src/signal_util.c | 1 + 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/common.h b/include/common.h index d72241c..f31a4c4 100644 --- a/include/common.h +++ b/include/common.h @@ -59,8 +59,6 @@ typedef struct { char *pkgid; } appinfo_t; -struct ucred; - int _create_server_sock(void); app_pkt_t *_recv_pkt_raw(int fd, int *clifd, struct ucred *cr); appinfo_t *_appinfo_create(bundle *kb); diff --git a/src/common.c b/src/common.c index 8912352..c6b121a 100644 --- a/src/common.c +++ b/src/common.c @@ -719,7 +719,8 @@ char **_create_argc_argv(bundle *kb, int *margc, const char *app_path) if (argv[0]) free(argv[0]); snprintf(buf, sizeof(buf), "%s.exe", app_path); - /* this code is added because core app don't have '.exe' excutable */ + /* this code is added */ + /* because core app don't have '.exe' excutable */ /* if '.exe' not exist then use app_path */ if (access(buf, F_OK) != 0) argv[0] = strdup(app_path); diff --git a/src/debug-launchpad.c b/src/debug-launchpad.c index c67df3c..f8f3c30 100644 --- a/src/debug-launchpad.c +++ b/src/debug-launchpad.c @@ -95,7 +95,7 @@ static int __prepare_exec(const char *appid, const char *app_path, appid, appinfo->pkg_type, app_path); ret = security_manager_prepare_app(appid); if (ret != SECURITY_MANAGER_SUCCESS) { - _E("Failed to set privileges " + _E("Failed to set privileges " \ "- check your package's credential: %d", ret); return -1; } @@ -265,7 +265,7 @@ static int __start_process(const char *appid, const char *app_path, _D("lock up test log(no error): prepare exec - first done"); if (__prepare_exec(appid, app_path, appinfo, kb) < 0) { - _E("preparing work fail to launch " + _E("preparing work fail to launch " \ "- can not launch %s", appid); exit(-1); } diff --git a/src/debug_util.c b/src/debug_util.c index 224de11..e38c627 100644 --- a/src/debug_util.c +++ b/src/debug_util.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#define _GNU_SOURCE #include #include #include diff --git a/src/signal_util.c b/src/signal_util.c index 8e8acb3..4e69fac 100644 --- a/src/signal_util.c +++ b/src/signal_util.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#define _GNU_SOURCE #include #include #include -- 2.7.4