]> git.sur5r.net Git - openldap/commitdiff
Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf.
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 4 Mar 1999 12:58:56 +0000 (12:58 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 4 Mar 1999 12:58:56 +0000 (12:58 +0000)
servers/slapd/shell-backends/shellutil.c

index 8fb7ddea44e30a4dbf66d34087b78797b34f0e34..82529aef45ce62e22998b3da25a223dfc74885e0 100644 (file)
@@ -321,7 +321,7 @@ ecalloc( unsigned nelem, unsigned elsize )
 /* VARARGS */
 void
 debug_printf
-#ifdef STDC_HEADERS
+#if HAVE_STDARG
        ( char *fmt, ... )
 #else
        ( va_alist )
@@ -329,12 +329,12 @@ debug_printf
 #endif
 {
     va_list    ap;
-#ifndef STDC_HEADERS
+#if !HAVE_STDARG
     char       *fmt;
 #endif
 
        if ( debugflg ) {
-#ifdef STDC_HEADERS
+#if HAVE_STDARG
                va_start( ap, fmt );
 #else
                va_start( ap );