]> git.sur5r.net Git - openldap/commitdiff
Axe <varargs.h> support. Assume STDC C translator is available
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 2 Sep 1999 06:14:23 +0000 (06:14 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 2 Sep 1999 06:14:23 +0000 (06:14 +0000)
to build OpenLDAP.

servers/slapd/shell-backends/shellutil.c

index 4ba1213fa2fa11e833df5abb1671ce401de9b4d4..1bbf55abcd52e2ccaa8f096a23b44ab2355b6154 100644 (file)
@@ -320,26 +320,12 @@ ecalloc( unsigned nelem, unsigned elsize )
 
 /* VARARGS */
 void
-debug_printf
-#if HAVE_STDARG
-       ( char *fmt, ... )
-#else
-       ( va_alist )
-    va_dcl
-#endif
+debug_printf( const char *fmt, ... )
 {
     va_list    ap;
-#if !HAVE_STDARG
-    char       *fmt;
-#endif
 
        if ( debugflg ) {
-#if HAVE_STDARG
                va_start( ap, fmt );
-#else
-               va_start( ap );
-               fmt = va_arg( ap, char * );
-#endif
                fprintf( stderr, "%s: ", progname );
                vfprintf( stderr, fmt, ap );
                va_end( ap );