From ef13073676be9ec073f9cec3dd9fbce90e1d1228 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 14 Oct 2007 13:00:12 +0200 Subject: r25627: Remove unused global. (This used to be commit b0b4668333b53991b04cae8905836c766e50aa10) --- source4/lib/util/dprintf.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'source4/lib/util') diff --git a/source4/lib/util/dprintf.c b/source4/lib/util/dprintf.c index 91665e7bdd..be716241e3 100644 --- a/source4/lib/util/dprintf.c +++ b/source4/lib/util/dprintf.c @@ -19,8 +19,10 @@ /* - this module provides functions for printing internal strings in the "display charset" - This charset may be quite different from the chosen unix charset + this module provides functions for printing internal strings in the + "display charset". + + This charset may be quite different from the chosen unix charset. Eventually these functions will need to take care of column count constraints @@ -99,25 +101,14 @@ _PUBLIC_ int d_fprintf(FILE *f, const char *format, ...) _PRINTF_ATTRIBUTE(2,3) return ret; } -static FILE *outfile; - _PUBLIC_ int d_printf(const char *format, ...) _PRINTF_ATTRIBUTE(1,2) { int ret; va_list ap; - if (!outfile) outfile = stdout; - va_start(ap, format); - ret = d_vfprintf(outfile, format, ap); + ret = d_vfprintf(stdout, format, ap); va_end(ap); return ret; } - -/* interactive programs need a way of tell d_*() to write to stderr instead - of stdout */ -_PUBLIC_ void display_set_stderr(void) -{ - outfile = stderr; -} -- cgit