Use "const char *" instead of "char *" for the strings passed to

log_put()

It does not solve any bug but will allow to detect some by the compiler
This commit is contained in:
Ludovic Rousseau 2012-05-13 14:58:44 +00:00
parent 3e678822ce
commit b9e5e96e49
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ log_fini (void)
}
void
log_put (char *category, char *priority, char *format, ...)
log_put (const char *category, const char *priority, const char *format, ...)
{
va_list va;
va_start (va, format);

View file

@ -27,7 +27,7 @@
#define LOGGING 1
int log_init (void);
int log_fini (void);
void log_put (char *category, char *priority, char *format, ...);
void log_put (const char *category, const char *priority, const char *format, ...);
#define NFC_PRIORITY_FATAL "fatal"
#define NFC_PRIORITY_ALERT "alert"