r13401: remove the rename of the snprintf functions that simo accidentially
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Feb 2006 00:50:48 +0000 (00:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:52 +0000 (13:51 -0500)
included in his last commit
(This used to be commit 487b374b4359b2cb5f4e249e595c43bfa568a853)

source4/lib/replace/snprintf.c

index 379e15cf6dc4dafcb570d6d02047ff5324342485..f3eac1b9b5cd16381d3d7aca28da7ad27ddafb5f 100644 (file)
@@ -1187,11 +1187,10 @@ static int add_cnk_list_entry(struct pr_chunk_x **list,
        return max;
 }
 
- int smb_vsnprintf (char *str, size_t count, const char *fmt, va_list args)
+ int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
 {
        return dopr(str, count, fmt, args);
 }
-#define vsnprintf smb_vsnprintf
 #endif
 
 /* yes this really must be a ||. Don't muck with this (tridge)
@@ -1201,7 +1200,7 @@ static int add_cnk_list_entry(struct pr_chunk_x **list,
  * that doesn't work properly according to the autoconf test.
  */
 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
-int smb_snprintf(char *str,size_t count,const char *fmt,...)
+ int snprintf(char *str,size_t count,const char *fmt,...)
 {
        size_t ret;
        va_list ap;
@@ -1211,7 +1210,6 @@ int smb_snprintf(char *str,size_t count,const char *fmt,...)
        va_end(ap);
        return ret;
 }
-#define snprintf smb_snprintf
 #endif
 
 #endif