From d68d06480cd7def0b85e2a1091b3993a357ac574 Mon Sep 17 00:00:00 2001 From: Kevin Easton Date: Sat, 15 Jul 2017 00:16:18 +1000 Subject: [PATCH] Remove unused argument from log_put_it(), move declaration to output.h --- include/output.h | 1 + source/output.c | 2 +- source/readlog.c | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/output.h b/include/output.h index 4f33101..d55b441 100644 --- a/include/output.h +++ b/include/output.h @@ -14,6 +14,7 @@ void put_echo (char *); void BX_put_it (const char *, ...); + void log_put_it(const char *format, ...); void BX_send_to_server (const char *, ...); void BX_my_send_to_server (int, const char *, ...); diff --git a/source/output.c b/source/output.c index c117188..5d51841 100644 --- a/source/output.c +++ b/source/output.c @@ -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) { diff --git a/source/readlog.c b/source/readlog.c index 96f5768..d784a38 100644 --- a/source/readlog.c +++ b/source/readlog.c @@ -34,7 +34,6 @@ static int use_msg_window = 0; static void log_prompt (char *name, char *line); static void set_msg_screen (Screen *); static char *(*read_log_func) (char *, int, FILE *); - void log_put_it(const char *topic, const char *format, ...); BUILT_IN_COMMAND(remove_log) { @@ -119,7 +118,7 @@ BUILT_IN_COMMAND(readlog) 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); return; } @@ -167,7 +166,7 @@ static int show_log(Window *window, char *name) if (get_int_var(HEBREW_TOGGLE_VAR)) hebrew_process(line); #endif - log_put_it(name, "%s", line); + log_put_it("%s", line); } else {