Constify the format string of logging functions

This commit is contained in:
Julien BLACHE 2010-03-07 10:36:33 +01:00
parent 07146e3261
commit 107ec85578
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ set_logdomains(char *domains)
}
void
vlogger(int severity, int domain, char *fmt, va_list args)
vlogger(int severity, int domain, const char *fmt, va_list args)
{
va_list ap;
char stamp[32];
@ -121,7 +121,7 @@ vlogger(int severity, int domain, char *fmt, va_list args)
}
void
DPRINTF(int severity, int domain, char *fmt, ...)
DPRINTF(int severity, int domain, const char *fmt, ...)
{
va_list ap;

View File

@ -32,10 +32,10 @@
void
vlogger(int severity, int domain, char *fmt, va_list args);
vlogger(int severity, int domain, const char *fmt, va_list args);
void
DPRINTF(int severity, int domain, char *fmt, ...) __attribute__((format(printf, 3, 4)));
DPRINTF(int severity, int domain, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
void
logger_libevent(int severity, const char *msg);