Change 'from' and 'format' arguments of logmsg() to const char *

This allows callers to pass const char * pointers to them.
This commit is contained in:
Kevin Easton
2015-09-02 23:39:53 +10:00
parent d1816fdc8b
commit c881dd7a9a
2 changed files with 22 additions and 22 deletions

View File

@@ -85,7 +85,7 @@ extern unsigned long new_server_lastlog_level;
void set_beep_on_msg(Window *, char *, int); void set_beep_on_msg(Window *, char *, int);
Lastlog *get_lastlog_current_head(Window *); Lastlog *get_lastlog_current_head(Window *);
void free_lastlog(Window *); void free_lastlog(Window *);
int logmsg(unsigned long, char *, int, char *, ...); int logmsg(unsigned long log_type, const char *from, int flag, const char *format, ...);
void reset_hold_mode(Window *); void reset_hold_mode(Window *);
#endif /* __lastlog_h_ */ #endif /* __lastlog_h_ */

View File

@@ -569,7 +569,7 @@ void set_notify_level(Window *win, char *str, int unused)
current_window->notify_level = notify_level; current_window->notify_level = notify_level;
} }
int logmsg(unsigned long log_type, char *from, int flag, char *format, ...) int logmsg(unsigned long log_type, const char *from, int flag, const char *format, ...)
{ {
#ifdef PUBLIC_ACCESS #ifdef PUBLIC_ACCESS
return 0; return 0;