From: Kurt Zeilenga Date: Sun, 27 Feb 2005 06:10:01 +0000 (+0000) Subject: Fix compiler error and warnings. X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aefb272680336b2e431825829630f5bc8f0cc3e6;p=openldap Fix compiler error and warnings. --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 6df509dfb2..4d60f6ef08 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -1226,12 +1226,12 @@ config_generic(ConfigArgs *c) { break; case CFG_LOGFILE: { - if ( logfileName ) ch_free( logfileName ); - logfileName = c->value_string; - FILE *logfile = fopen(logfileName, "w"); - if(logfile) lutil_debug_file(logfile); - break; - } + FILE *logfile; + if ( logfileName ) ch_free( logfileName ); + logfileName = c->value_string; + logfile = fopen(logfileName, "w"); + if(logfile) lutil_debug_file(logfile); + } break; case CFG_LASTMOD: if(SLAP_NOLASTMODCMD(c->be)) { diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 23a5ee02d4..08e336ef70 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -1409,11 +1409,11 @@ typedef struct slap_bindconf { } slap_bindconf; struct slap_replica_info { - char *ri_uri; /* supersedes be_replica */ - char *ri_host; /* points to host part of uri */ - BerVarray ri_nsuffix; /* array of suffixes this replica accepts */ + const char *ri_uri; /* supersedes be_replica */ + const char *ri_host; /* points to host part of uri */ + BerVarray ri_nsuffix; /* array of suffixes this replica accepts */ AttributeName *ri_attrs; /* attrs to replicate, NULL=all */ - int ri_exclude; /* 1 => exclude ri_attrs */ + int ri_exclude; /* 1 => exclude ri_attrs */ slap_bindconf ri_bindconf; /* for back-config */ };