Browse files

pointers to constant strings made const

  • Loading branch information...
1 parent 5ac198b commit ad45ca2aaaa0083da7ca0ad87020881b9e9a5567 @f0rk committed Jan 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 LogSyslogFast.c
View
4 LogSyslogFast.c
@@ -21,7 +21,7 @@ update_prefix(LogSyslogFast* logger, time_t t)
logger->last_time = t;
char timestr[40];
- char *time_format = "%h %e %T";
+ const char *time_format = "%h %e %T";
if (logger->format == LOG_RFC5424) {
time_format = "%Y-%m-%dT%H:%M:%S%z";
}
@@ -31,7 +31,7 @@ update_prefix(LogSyslogFast* logger, time_t t)
if (!logger->sender || !logger->name)
return; /* still initializing */
- char *msg_format = "<%d>%s %s %s[%d]: ";
+ const char *msg_format = "<%d>%s %s %s[%d]: ";
if (logger->format == LOG_RFC5424) {
msg_format = "<%d>1 %s %s %s %d - - ";
}

0 comments on commit ad45ca2

Please sign in to comment.