summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJin Yoon <jinny.yoon@samsung.com>2013-03-11 07:49:07 (GMT)
committerJin Yoon <jinny.yoon@samsung.com>2013-03-11 07:49:07 (GMT)
commite6c0aeb105605aee070f47997fa87f8e2afd789f (patch)
tree0d916078976e12fbf710fd3fa09f16632e437d07
parent80911130d95abea89913c6b65f76c1075b04627a (diff)
downloadstarter-e6c0aeb105605aee070f47997fa87f8e2afd789f.zip
starter-e6c0aeb105605aee070f47997fa87f8e2afd789f.tar.gz
starter-e6c0aeb105605aee070f47997fa87f8e2afd789f.tar.bz2
Remove warnings
Change-Id: Ifc5edfa142c463d53017e45d01ba214dba65869c
-rwxr-xr-xsrc/pkg_event.c6
-rwxr-xr-xsrc/starter.c1
2 files changed, 1 insertions, 6 deletions
diff --git a/src/pkg_event.c b/src/pkg_event.c
index f03b9ef..f3df8c5 100755
--- a/src/pkg_event.c
+++ b/src/pkg_event.c
@@ -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;
}
diff --git a/src/starter.c b/src/starter.c
index e76f0e9..67bc680 100755
--- a/src/starter.c
+++ b/src/starter.c
@@ -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;