Remove warnings
authorJin Yoon <jinny.yoon@samsung.com>
Mon, 11 Mar 2013 07:49:07 +0000 (16:49 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Mon, 11 Mar 2013 07:49:07 +0000 (16:49 +0900)
Change-Id: Ifc5edfa142c463d53017e45d01ba214dba65869c

src/pkg_event.c
src/starter.c

index f03b9ef..f3df8c5 100755 (executable)
@@ -286,11 +286,7 @@ void pkg_event_fini(void)
        for (i = 0; i < CONF_PATH_NUMBER; i ++) {
                if (paths[i].wd) {
                        if (inotify_rm_watch(s_desktop_notifier.ifd, paths[i].wd) < 0) {
-                               char log[BUFSZE] = {0,};
-                               int ret;
-
-                               ret = strerror_r(errno, log, sizeof(log));
-                               _E("Error: %s", ret == 0? log : "unknown error");
+                               _E("Error: %s", strerror(errno));
                        }
                        paths[i].wd = 0;
                }
index e76f0e9..67bc680 100755 (executable)
@@ -177,7 +177,6 @@ static void _init(struct appdata *ad)
 {
        int r;
        struct sigaction act;
-       char *file = NULL;
 
        memset(&act,0x00,sizeof(struct sigaction));
        act.sa_sigaction = _signal_handler;