Fix build warnings 73/236273/1
authorJusung Son <jusung07.son@samsung.com>
Tue, 16 Jun 2020 04:46:46 +0000 (13:46 +0900)
committerJusung Son <jusung07.son@samsung.com>
Tue, 16 Jun 2020 04:46:46 +0000 (13:46 +0900)
Change-Id: I8745bd765b9486238a01bdd8e791727466d52f9e
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
client/c_common.c
client/c_direct.c
client/c_main.c
daemon/main.c

index ac5ce547bb40f4d1264814e35c3e4fa0fda2b066..1c8849ad1aa1eda8c08dc9a2a5ced56c9d8b63da 100644 (file)
@@ -27,7 +27,7 @@
 #include "c_log.h"
 #include "c_common.h"
 
-static const char const *type_names[BUXTON_TYPE_MAX] = {
+static const char *type_names[BUXTON_TYPE_MAX] = {
        [BUXTON_TYPE_UNKNOWN]   = "Unknown",
        [BUXTON_TYPE_STRING]    = "String",
        [BUXTON_TYPE_INT32]     = "Int32",
index 9846dff8329c074889270ebd71f16e9767092852..2f09a373beef10453c4fd9c208e7892d4ed9461e 100644 (file)
@@ -41,7 +41,7 @@ static int _log_max_line = 2000;
 static bool _log_on = true;
 
 static const char *confpath;
-static const char const *type_names[BUXTON_TYPE_MAX] = {
+static const char *type_names[BUXTON_TYPE_MAX] = {
        [BUXTON_TYPE_UNKNOWN]   = "Unknown",
        [BUXTON_TYPE_STRING]    = "String",
        [BUXTON_TYPE_INT32]     = "Int32",
@@ -133,7 +133,7 @@ static bool _init_log()
 
 static void _write_file_log(const char *key, const char *value)
 {
-       char buf[512] = {0,};
+       char buf[1024] = {0,};
        char time_buf[32] = {0,};
        int ret = 0;
        int fd;
index 827421977f4ec224ff7af4b0b1ce4b1971c49016..9742802700172e0113f93d5973e0770771e7e3ce 100644 (file)
@@ -54,7 +54,7 @@ struct command {
        comm_func dfunc;
 };
 
-static const struct command const commands[] = {
+static const struct command commands[] = {
        {
                .name    = "check",
                .summary = "Check the availability of Buxton",
index 1f5d8b107366f73552f22e712e7aa2ee39399f0c..56d58917a59729cd7ac96c3cec89af6daa2cd451 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "daemon.h"
 
-static const struct option const opts[] = {
+static const struct option opts[] = {
        { "config-file", required_argument, NULL, 'c' },
        { "foreground",  no_argument,       NULL, 'f' },
        { "help",        no_argument,       NULL, 'h' },