From cda6f0e7cc9e75a259b791e91a72f6440cd5d6cf Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 19 Feb 2004 15:19:20 +0000 Subject: [PATCH] (logerror): The version from libcommon.a logs to a file, which is inappropriate for this program. Log to stderr instead. (program): Unused, remove. --- src/util/files.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/util/files.c b/src/util/files.c index 5f5878ba..c942b3c8 100644 --- a/src/util/files.c +++ b/src/util/files.c @@ -45,6 +45,7 @@ #else #include #endif +#include #include #include "options.h" @@ -63,8 +64,6 @@ #include "prototypes.h" #include "optlist.h" -s_char program[] = "file"; - static void comminit(int fd); static int make(char *filename); static void file_sct_init(coord x, coord y, s_char *ptr); @@ -258,6 +257,16 @@ file_sct_init(coord x, coord y, s_char *ptr) sp->sct_dist_y = y; } +void +logerror(s_char *format, ...) +{ + va_list ap; + + va_start(ap, format); + vfprintf(stderr, format, ap); + va_end(ap); +} + void log_last_commands(void) {