From 41c5f4d17bad0341233975444d2945bfa10a08f0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 4 May 2009 21:51:35 +0000 Subject: Rename use_stderr -> unbuffered (more descriptive). svn path=/branches/BRANCH_6-3/; revision=5284 --- report.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'report.c') diff --git a/report.c b/report.c index 783ed48a..e98d0f13 100644 --- a/report.c +++ b/report.c @@ -43,7 +43,7 @@ static unsigned int partial_message_size = 0; static unsigned int partial_message_size_used = 0; static char *partial_message; -static unsigned use_stderr; +static unsigned unbuffered; static unsigned int use_syslog; /* This variable is incremented each time `report' is called. */ @@ -163,18 +163,18 @@ void report_init(int mode) { case 0: /* errfp, buffered */ default: - use_stderr = FALSE; + unbuffered = FALSE; use_syslog = FALSE; break; case 1: /* errfp, unbuffered */ - use_stderr = TRUE; + unbuffered = TRUE; use_syslog = FALSE; break; #ifdef HAVE_SYSLOG case -1: /* syslogd */ - use_stderr = FALSE; + unbuffered = FALSE; use_syslog = TRUE; break; #endif /* HAVE_SYSLOG */ @@ -265,7 +265,7 @@ report_build (FILE *errfp, message, va_alist) } #endif - if (use_stderr && partial_message_size_used != 0) + if (unbuffered && partial_message_size_used != 0) { partial_message_size_used = 0; fputs(partial_message, errfp); @@ -336,7 +336,7 @@ report_complete (FILE *errfp, message, va_alist) /* Finally... print it. */ partial_message_size_used = 0; - if (use_stderr) + if (unbuffered) { fputs(partial_message, errfp); fflush (errfp); -- cgit v1.2.3