summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-29 22:51:58 +0000
committerDenis Vlasenko2007-01-29 22:51:58 +0000
commitab2aea44479fd6f519bccd651a37f30e792b7593 (patch)
tree443636e12ffb52db95168013bbda80f78ed49fe6 /sysklogd
parent06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff)
downloadbusybox-ab2aea44479fd6f519bccd651a37f30e792b7593.zip
busybox-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.gz
preparatory patch for -Wwrite-strings #4
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index dca488e..bfa9a44 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);