From: Jusung Son Date: Tue, 16 Jun 2020 04:46:46 +0000 (+0900) Subject: Fix build warnings X-Git-Tag: accepted/tizen/6.0/unified/20201030.115404~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2a5f512f8bf02ba30f28ff4c42d97f52b1101be;p=platform%2Fcore%2Fsystem%2Fbuxton2.git Fix build warnings Change-Id: I8745bd765b9486238a01bdd8e791727466d52f9e Signed-off-by: Jusung Son --- diff --git a/client/c_common.c b/client/c_common.c index ac5ce54..1c8849a 100644 --- a/client/c_common.c +++ b/client/c_common.c @@ -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", diff --git a/client/c_direct.c b/client/c_direct.c index 9846dff..2f09a37 100644 --- a/client/c_direct.c +++ b/client/c_direct.c @@ -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; diff --git a/client/c_main.c b/client/c_main.c index 8274219..9742802 100644 --- a/client/c_main.c +++ b/client/c_main.c @@ -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", diff --git a/daemon/main.c b/daemon/main.c index 1f5d8b1..56d5891 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -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' },