From: Hallvard Furuseth Date: Thu, 4 Mar 1999 12:58:56 +0000 (+0000) Subject: Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~487 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f8c9a78903b4a03e94b2305eae9c0245cd049c1;p=openldap Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf. --- diff --git a/servers/slapd/shell-backends/shellutil.c b/servers/slapd/shell-backends/shellutil.c index 8fb7ddea44..82529aef45 100644 --- a/servers/slapd/shell-backends/shellutil.c +++ b/servers/slapd/shell-backends/shellutil.c @@ -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 );