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:
@@ -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_ */
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user