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 ac5ce54..1c8849a 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 9846dff..2f09a37 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 8274219..9742802 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 1f5d8b1..56d5891 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' },