mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-12 02:23:47 +00:00
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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user