From 6f8c9a78903b4a03e94b2305eae9c0245cd049c1 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 4 Mar 1999 12:58:56 +0000 Subject: [PATCH] Use HAVE_STDARG to choose between stdarg and varargs version of debug_printf. --- servers/slapd/shell-backends/shellutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.39.5