diff options
author | Jusung Son <jusung07.son@samsung.com> | 2020-06-16 13:46:46 +0900 |
---|---|---|
committer | Jusung Son <jusung07.son@samsung.com> | 2020-06-16 13:46:46 +0900 |
commit | f2a5f512f8bf02ba30f28ff4c42d97f52b1101be (patch) | |
tree | cf36fa00f13decca9b490a0bda3a061274674fa1 | |
parent | f09a2b35333018ba5c9b95d6db2160ef8ba37610 (diff) | |
download | buxton2-f2a5f512f8bf02ba30f28ff4c42d97f52b1101be.tar.gz buxton2-f2a5f512f8bf02ba30f28ff4c42d97f52b1101be.tar.bz2 buxton2-f2a5f512f8bf02ba30f28ff4c42d97f52b1101be.zip |
Fix build warnings
Change-Id: I8745bd765b9486238a01bdd8e791727466d52f9e
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
-rw-r--r-- | client/c_common.c | 2 | ||||
-rw-r--r-- | client/c_direct.c | 4 | ||||
-rw-r--r-- | client/c_main.c | 2 | ||||
-rw-r--r-- | daemon/main.c | 2 |
4 files changed, 5 insertions, 5 deletions
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' }, |