Fix build warnings 49/148649/1
authorInkyun Kil <inkyun.kil@samsung.com>
Fri, 8 Sep 2017 08:07:57 +0000 (17:07 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Fri, 8 Sep 2017 08:07:57 +0000 (17:07 +0900)
Change-Id: Ibfd8c1a7c43590b09b113680373ea680b0482c15
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
common/backends.c
daemon/daemon.c
vconf-compat/vconf.c

index a91795f..f479a80 100644 (file)
@@ -135,7 +135,6 @@ err:
 static int load_modules(const char *moddir)
 {
        DIR *dir;
-       struct dirent de;
        struct dirent *result;
        char *ext;
        struct module *mod;
@@ -149,7 +148,7 @@ static int load_modules(const char *moddir)
                return -1;
        }
 
-       while ((readdir_r(dir, &de, &result) == 0) && (result != NULL)) {
+       while ((result = readdir(dir)) != NULL) {
                ext = strrchr(result->d_name, '.');
                if (!ext)
                        continue;
index b50ffb2..e7ff808 100644 (file)
@@ -223,7 +223,7 @@ static gboolean _send_notis(gpointer key, gpointer value, gpointer data)
        r = proto_send(cli->fd, MSG_NOTI, (uint8_t *)_data, (int)_len);
        if (r == -1) {
                bxt_err("send noti again key : %s pid : %d errno : %d",
-                               key, cli->cred.pid, errno);
+                               (char *)key, cli->cred.pid, errno);
                if (errno == EWOULDBLOCK || errno == EAGAIN) {
                        free(_data);
                        return FALSE;
index 41b9872..0c7b119 100644 (file)
@@ -494,7 +494,7 @@ static void _restore_noti_cb(gpointer key, gpointer value, gpointer user_data)
 
        if (r == -1) {
                LOGE("vconf_notify_key_changed: key '%s' add notify error %d",
-                               key, errno);
+                               _key, errno);
                g_hash_table_remove(noti_tbl, key);
        } else {
                _refcnt++;