Change-Id: Ibfd8c1a7c43590b09b113680373ea680b0482c15
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
static int load_modules(const char *moddir)
{
DIR *dir;
- struct dirent de;
struct dirent *result;
char *ext;
struct module *mod;
return -1;
}
- while ((readdir_r(dir, &de, &result) == 0) && (result != NULL)) {
+ while ((result = readdir(dir)) != NULL) {
ext = strrchr(result->d_name, '.');
if (!ext)
continue;
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;
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++;