From 88f8fd8a1f1f72bbebcd4a0cdcb8be53aad49259 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 30 Sep 2001 21:56:29 +0000 Subject: More refactoring. svn path=/trunk/; revision=3526 --- report.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'report.c') diff --git a/report.c b/report.c index 3ea45852..a9c3f77f 100644 --- a/report.c +++ b/report.c @@ -13,12 +13,13 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif - #include #include #if defined(HAVE_SYSLOG) #include #endif +#include "i18n.h" +#include "fetchmail.h" #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC || HAVE_STDARG_H # if HAVE_STDARG_H @@ -33,16 +34,6 @@ # define va_dcl char *a1, *a2, *a3, *a4, *a5, *a6, *a7, *a8; #endif -#if STDC_HEADERS || _LIBC -# include -# include -#else -void exit (); -#endif - -#include "i18n.h" - -#include "fetchmail.h" #define MALLOC(n) xmalloc(n) #define REALLOC(n,s) xrealloc(n,s) @@ -55,7 +46,8 @@ void (*report_print_progname) ( #endif ); -/* Used by report_build() and report_complete() to accumulate partial messages. */ +/* Used by report_build() and report_complete() to accumulate partial messages. + */ static unsigned int partial_message_size = 0; static unsigned int partial_message_size_used = 0; static char *partial_message; @@ -63,7 +55,7 @@ static unsigned use_stderr; static unsigned int use_syslog; /* This variable is incremented each time `report' is called. */ -unsigned int report_message_count; +static unsigned int report_message_count; #ifdef _LIBC /* In the GNU C library, there is a predefined variable for this. */ @@ -178,7 +170,7 @@ report (FILE *errfp, message, va_alist) } /* - * Calling report_init(1) causes error_build and error_complete to write + * Calling report_init(1) causes report_build and report_complete to write * to errfp without buffering. This is needed for the ticker dots to * work correctly. */ @@ -310,7 +302,7 @@ report_build (FILE *errfp, message, va_alist) } } -/* Complete an report message by appending MESSAGE, which is a printf-style +/* Complete a report message by appending MESSAGE, which is a printf-style format string with optional args, to the existing report message (which may be empty.) The completed report message is then printed (and reset to empty.) */ -- cgit v1.2.3