X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fre.c;h=36a37538fe2e57a0eb6b20ab5fbd6c0898f281e1;hb=853a1371d176053fa7f66d3e302d97f1b0ef8067;hp=ea2960f67142255b964c733445b79931151422bc;hpb=e9233c923ddb31a1302309e0446a8e8ffacef0f9;p=openldap diff --git a/servers/slurpd/re.c b/servers/slurpd/re.c index ea2960f671..36a37538fe 100644 --- a/servers/slurpd/re.c +++ b/servers/slurpd/re.c @@ -18,30 +18,29 @@ */ +#include "portable.h" + #include -#include -#include -#include + +#include +#include +#include #include "../slapd/slap.h" #include "slurp.h" #include "globals.h" /* externs */ -extern char *str_getline( char **next ); -extern void ch_free( char *p ); - -#ifndef SYSERRLIST_IN_STDIO -extern char *sys_errlist[]; -#endif /* SYSERRLIST_IN_STDIO */ +extern char *str_getline LDAP_P(( char **next )); +extern void ch_free LDAP_P(( char *p )); /* Forward references */ -static Rh *get_repl_hosts( char *, int *, char ** ); -static int gettype( char * ); -static int getchangetype( char *); -static int Re_parse( Re *re, char *replbuf ); -static void Re_dump( Re *re, FILE *fp ); -static void warn_unknown_replica( char *, int port ); +static Rh *get_repl_hosts LDAP_P(( char *, int *, char ** )); +static int gettype LDAP_P(( char * )); +static int getchangetype LDAP_P(( char * )); +static int Re_parse LDAP_P(( Re *re, char *replbuf )); +static void Re_dump LDAP_P(( Re *re, FILE *fp )); +static void warn_unknown_replica LDAP_P(( char *, int port )); /* Globals, scoped within this file */ static int nur = 0; /* Number of unknown replicas */ @@ -82,10 +81,10 @@ Re_free( "Warning: freeing re (dn: %s) with nonzero refcnt\n", re->re_dn, 0, 0 ); } -#if !defined( THREAD_SUNOS4_LWP ) +#if !defined( HAVE_LWP ) /* This seems to have problems under SunOS lwp */ pthread_mutex_destroy( &re->re_mutex ); -#endif /* THREAD_SUNOS4_LWP */ +#endif /* HAVE_LWP */ ch_free( re->re_timestamp ); if (( rh = re->re_replicas ) != NULL ) { for ( i = 0; rh[ i ].rh_hostname != NULL; i++ ) {