Change the variable of extern with static 49/231849/1
authorYoungHun Kim <yh8004.kim@samsung.com>
Fri, 24 Apr 2020 11:45:01 +0000 (20:45 +0900)
committerYoungHun Kim <yh8004.kim@samsung.com>
Fri, 24 Apr 2020 11:45:21 +0000 (20:45 +0900)
Change-Id: Icbc7f2e3dd946926fd728e4176316837dd1bdaf8

client/src/muse_client.c
core/include/muse_core.h
server/src/muse_server_private.c

index 1caa6a4..7ebcaba 100644 (file)
@@ -31,7 +31,7 @@ static GMutex mc_mutex;
 static GHashTable *mc_table;
 static int mc_table_id;
 
-const char *UDS_files[MUSE_CHANNEL_MAX] = {MUSE_SOCK_FILE0, MUSE_SOCK_FILE1};
+static const char *UDS_files[MUSE_CHANNEL_MAX] = {MUSE_SOCK_FILE0, MUSE_SOCK_FILE1};
 
 #ifdef MUSE_USE_CLIENT_SIGHANDLER
 /* signal handler */
index f13549e..57ddf50 100644 (file)
@@ -85,8 +85,6 @@ typedef struct muse_external_storage_info {
        const char *path;
 } muse_external_storage_info_t;
 
-extern const char *UDS_files[MUSE_CHANNEL_MAX];
-
 int muse_core_connection_close(int sock_fd);
 int muse_core_set_nonblocking(int fd, bool value);
 int muse_core_set_socket_timeout(int sock_fd, int timeout_sec);
index 5d28fc2..c5d3d42 100644 (file)
@@ -43,7 +43,7 @@ static const char *channel_name[MUSE_CHANNEL_MAX] = {
        "data"
 };
 
-const char *UDS_files[MUSE_CHANNEL_MAX] = {MUSE_SOCK_FILE0, MUSE_SOCK_FILE1};
+static const char *UDS_files[MUSE_CHANNEL_MAX] = {MUSE_SOCK_FILE0, MUSE_SOCK_FILE1};
 
 static muse_server_h muse_server;