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:
parent
3e678822ce
commit
b9e5e96e49
@ -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);
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user