#include <stdio.h>
-#ifdef STDC_HEADERS
#include <stdlib.h>
-#include <stdarg.h>
-#else
-#include <varargs.h>
-#endif
+#include <ac/stdarg.h>
#include <pwd.h>
-#include <ac/string.h>
#include <ac/ctype.h>
-extern long int random (void);
+#include <ac/string.h>
#include <lber.h>
#include <ldap.h>
while ( args != NULL ) {
if (( p = strchr( args, ' ' )) != NULL ) {
*p++ = '\0';
- while ( isspace( *p )) {
+ while ( isspace( (unsigned char) *p )) {
++p;
}
}
for ( i = 0; ips[ i ].ip_type != 0; ++i ) {
if ( strncasecmp( *linep, ips[ i ].ip_tag, p - *linep ) == 0 ) {
- while ( isspace( *(++p) )) {
+ while ( isspace( (unsigned char) *(++p) )) {
;
}
*linep = p;
/* VARARGS */
void
debug_printf
-#ifdef STDC_HEADERS
+#if HAVE_STDARG
( char *fmt, ... )
#else
( va_alist )
#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 );