=================================================================== RCS file: /cvs/cvs/blind/log.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- blind/log.c 2022/03/17 09:30:59 1.2 +++ blind/log.c 2022/03/17 10:20:47 1.3 @@ -19,7 +19,7 @@ #include #include -static int log_backgnd; +static int log_background; static int log_verbose; const char *log_procname; @@ -31,6 +31,7 @@ void log_info(const char *, ...) void log_debug(const char *, ...) __attribute__((__format__ (printf, 1, 2))); + void log_init(int background, int facility) { @@ -39,8 +40,8 @@ log_init(int background, int facility) if (__progname != NULL) log_procname = __progname; - log_backgnd = background; - if (log_backgnd) + log_background = background; + if (log_background) openlog(log_procname, LOG_PID | LOG_NDELAY, facility); tzset(); @@ -65,7 +66,7 @@ log_info(const char *info, ...) va_start(ap, info); - if (log_backgnd) + if (log_background) vsyslog(LOG_INFO, info, ap); else { vfprintf(stderr, info, ap); @@ -83,7 +84,7 @@ log_debug(const char *info, ...) if (log_verbose) { va_start(ap, info); - if (log_backgnd) + if (log_background) vsyslog(LOG_INFO, info, ap); else { vfprintf(stderr, info, ap);