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
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ log_fini (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
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_list va;
|
||||||
va_start (va, format);
|
va_start (va, format);
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#define LOGGING 1
|
#define LOGGING 1
|
||||||
int log_init (void);
|
int log_init (void);
|
||||||
int log_fini (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_FATAL "fatal"
|
||||||
#define NFC_PRIORITY_ALERT "alert"
|
#define NFC_PRIORITY_ALERT "alert"
|
||||||
|
|
Loading…
Add table
Reference in a new issue