diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:58 +0000 |
commit | ab2aea44479fd6f519bccd651a37f30e792b7593 (patch) | |
tree | 443636e12ffb52db95168013bbda80f78ed49fe6 /sysklogd | |
parent | 06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff) |
preparatory patch for -Wwrite-strings #4
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index dca488ec3..bfa9a446c 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -25,7 +25,7 @@ #define DEBUG 0 /* Path to the unix socket */ -static char *dev_log_name; +static const char *dev_log_name; /* Path for the file where all log messages are written */ static const char *logFilePath = "/var/log/messages"; @@ -444,7 +444,7 @@ static void split_escape_and_log(char *tmpbuf, int len) static void quit_signal(int sig) { - timestamp_and_log(LOG_SYSLOG | LOG_INFO, "syslogd exiting", 0); + timestamp_and_log(LOG_SYSLOG | LOG_INFO, (char*)"syslogd exiting", 0); puts("syslogd exiting"); unlink(dev_log_name); if (ENABLE_FEATURE_IPC_SYSLOG) @@ -455,7 +455,7 @@ static void quit_signal(int sig) static void do_mark(int sig) { if (markInterval) { - timestamp_and_log(LOG_SYSLOG | LOG_INFO, "-- MARK --", 0); + timestamp_and_log(LOG_SYSLOG | LOG_INFO, (char*)"-- MARK --", 0); alarm(markInterval); } } @@ -501,7 +501,8 @@ static void do_syslogd(void) ipcsyslog_init(); } - timestamp_and_log(LOG_SYSLOG | LOG_INFO, "syslogd started: BusyBox v" BB_VER, 0); + timestamp_and_log(LOG_SYSLOG | LOG_INFO, + (char*)"syslogd started: BusyBox v" BB_VER, 0); for (;;) { FD_ZERO(&fds); |