From bf83b641e265a7b1523545294c268c6708999d2a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 21 Jun 2011 12:51:30 +1000 Subject: lib/util Remove display_cd from d_printf() The setting of the display charset is now done by convert_string_talloc() selecting the right charset based on CH_DISPLAY. Andrew Bartlett Signed-off-by: Andrew Tridgell --- lib/util/dprintf.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/util/dprintf.c') diff --git a/lib/util/dprintf.c b/lib/util/dprintf.c index c79989b517..a77eed84f5 100644 --- a/lib/util/dprintf.c +++ b/lib/util/dprintf.c @@ -34,8 +34,6 @@ #include "includes.h" #include "system/locale.h" -static smb_iconv_t display_cd = (smb_iconv_t)-1; - static int d_vfprintf(FILE *f, const char *format, va_list ap) { char *p, *p2; @@ -44,11 +42,6 @@ static int d_vfprintf(FILE *f, const char *format, va_list ap) bool cret; va_list ap2; - /* If there's nothing to convert, take a shortcut */ - if (display_cd == (smb_iconv_t)-1) { - return vfprintf(f, format, ap); - } - va_copy(ap2, ap); ret = vasprintf(&p, format, ap2); va_end(ap2); -- cgit