mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Axe <varargs.h> support. Assume STDC C translator is available
to build OpenLDAP.
This commit is contained in:
parent
d0deb9b489
commit
85e79b1348
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user