remove "discard const" compiler warnings with log_message().
Michael
This commit is contained in:
parent
c409e0f9d8
commit
c2c7245030
@ -103,7 +103,7 @@ set_log_level (int level)
|
|||||||
* This routine logs messages to either the log file or the syslog function.
|
* This routine logs messages to either the log file or the syslog function.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
log_message (int level, char *fmt, ...)
|
log_message (int level, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
time_t nowtime;
|
time_t nowtime;
|
||||||
|
@ -108,7 +108,7 @@ extern int open_log_file (const char *file);
|
|||||||
extern void close_log_file (void);
|
extern void close_log_file (void);
|
||||||
extern void truncate_log_file (void);
|
extern void truncate_log_file (void);
|
||||||
|
|
||||||
extern void log_message (int level, char *fmt, ...);
|
extern void log_message (int level, const char *fmt, ...);
|
||||||
extern void set_log_level (int level);
|
extern void set_log_level (int level);
|
||||||
extern void send_stored_logs (void);
|
extern void send_stored_logs (void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user