Adjust coding style 04/85904/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 29 Aug 2016 11:43:30 +0000 (20:43 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 29 Aug 2016 11:43:30 +0000 (20:43 +0900)
Change-Id: Id2d1689c337fbba094553153e4440bef0f7b2b52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/common.h
src/common.c
src/debug-launchpad.c
src/debug_util.c
src/signal_util.c

index d72241c..f31a4c4 100644 (file)
@@ -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);
index 8912352..c6b121a 100644 (file)
@@ -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);
index c67df3c..f8f3c30 100644 (file)
@@ -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);
                }
index 224de11..e38c627 100644 (file)
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <string.h>
 #include <stdbool.h>
index 8e8acb3..4e69fac 100644 (file)
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <signal.h>