summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/c_common.c2
-rw-r--r--client/c_direct.c4
-rw-r--r--client/c_main.c2
-rw-r--r--daemon/main.c2
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' },