summaryrefslogtreecommitdiff
path: root/source4/lib/util/dprintf.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-14 13:00:12 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:01 +0100
commitef13073676be9ec073f9cec3dd9fbce90e1d1228 (patch)
treeb5ec4ee625d70ec6d0ab9d6b75c952594159641d /source4/lib/util/dprintf.c
parentf26222df4db2055d267789655a7113a49c178071 (diff)
downloadsamba-ef13073676be9ec073f9cec3dd9fbce90e1d1228.tar.gz
samba-ef13073676be9ec073f9cec3dd9fbce90e1d1228.tar.bz2
samba-ef13073676be9ec073f9cec3dd9fbce90e1d1228.zip
r25627: Remove unused global.
(This used to be commit b0b4668333b53991b04cae8905836c766e50aa10)
Diffstat (limited to 'source4/lib/util/dprintf.c')
-rw-r--r--source4/lib/util/dprintf.c19
1 files changed, 5 insertions, 14 deletions
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;
-}