svn commit: samba r25627 - in branches/SAMBA_4_0: . source/lib/util

jelmer at samba.org jelmer at samba.org
Sun Oct 14 13:00:14 GMT 2007


Author: jelmer
Date: 2007-10-14 13:00:12 +0000 (Sun, 14 Oct 2007)
New Revision: 25627

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25627

Log:
Remove unused global.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/lib/util/dprintf.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/lib/util/dprintf.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/dprintf.c	2007-10-14 12:52:32 UTC (rev 25626)
+++ branches/SAMBA_4_0/source/lib/util/dprintf.c	2007-10-14 13:00:12 UTC (rev 25627)
@@ -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 @@
 	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;
-}



More information about the samba-cvs mailing list