Remove unused argument from log_put_it(), move declaration to output.h

This commit is contained in:
Kevin Easton
2017-07-15 00:16:18 +10:00
parent 9c46ddddb6
commit d68d06480c
3 changed files with 4 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
void put_echo (char *); void put_echo (char *);
void BX_put_it (const char *, ...); void BX_put_it (const char *, ...);
void log_put_it(const char *format, ...);
void BX_send_to_server (const char *, ...); void BX_send_to_server (const char *, ...);
void BX_my_send_to_server (int, const char *, ...); void BX_my_send_to_server (int, const char *, ...);

View File

@@ -255,7 +255,7 @@ void BX_yell(const char *format, ...)
} }
void log_put_it (const char *topic, const char *format, ...) void log_put_it (const char *format, ...)
{ {
if (format) if (format)
{ {

View File

@@ -34,7 +34,6 @@ static int use_msg_window = 0;
static void log_prompt (char *name, char *line); static void log_prompt (char *name, char *line);
static void set_msg_screen (Screen *); static void set_msg_screen (Screen *);
static char *(*read_log_func) (char *, int, FILE *); static char *(*read_log_func) (char *, int, FILE *);
void log_put_it(const char *topic, const char *format, ...);
BUILT_IN_COMMAND(remove_log) BUILT_IN_COMMAND(remove_log)
{ {
@@ -119,7 +118,7 @@ BUILT_IN_COMMAND(readlog)
if (msg_fp == NULL) if (msg_fp == NULL)
{ {
log_put_it(expand, "%s Error Opening Log file %s", thing_ansi, expand); log_put_it("%s Error Opening Log file %s", thing_ansi, expand);
new_free(&expand); new_free(&expand);
return; return;
} }
@@ -167,7 +166,7 @@ static int show_log(Window *window, char *name)
if (get_int_var(HEBREW_TOGGLE_VAR)) if (get_int_var(HEBREW_TOGGLE_VAR))
hebrew_process(line); hebrew_process(line);
#endif #endif
log_put_it(name, "%s", line); log_put_it("%s", line);
} }
else else
{ {