#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",
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",
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;
comm_func dfunc;
};
-static const struct command const commands[] = {
+static const struct command commands[] = {
{
.name = "check",
.summary = "Check the availability of Buxton",
#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' },