mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix compiler error and warnings.
This commit is contained in:
parent
7ac0497863
commit
aefb272680
@ -1226,12 +1226,12 @@ config_generic(ConfigArgs *c) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CFG_LOGFILE: {
|
case CFG_LOGFILE: {
|
||||||
if ( logfileName ) ch_free( logfileName );
|
FILE *logfile;
|
||||||
logfileName = c->value_string;
|
if ( logfileName ) ch_free( logfileName );
|
||||||
FILE *logfile = fopen(logfileName, "w");
|
logfileName = c->value_string;
|
||||||
if(logfile) lutil_debug_file(logfile);
|
logfile = fopen(logfileName, "w");
|
||||||
break;
|
if(logfile) lutil_debug_file(logfile);
|
||||||
}
|
} break;
|
||||||
|
|
||||||
case CFG_LASTMOD:
|
case CFG_LASTMOD:
|
||||||
if(SLAP_NOLASTMODCMD(c->be)) {
|
if(SLAP_NOLASTMODCMD(c->be)) {
|
||||||
|
@ -1409,11 +1409,11 @@ typedef struct slap_bindconf {
|
|||||||
} slap_bindconf;
|
} slap_bindconf;
|
||||||
|
|
||||||
struct slap_replica_info {
|
struct slap_replica_info {
|
||||||
char *ri_uri; /* supersedes be_replica */
|
const char *ri_uri; /* supersedes be_replica */
|
||||||
char *ri_host; /* points to host part of uri */
|
const char *ri_host; /* points to host part of uri */
|
||||||
BerVarray ri_nsuffix; /* array of suffixes this replica accepts */
|
BerVarray ri_nsuffix; /* array of suffixes this replica accepts */
|
||||||
AttributeName *ri_attrs; /* attrs to replicate, NULL=all */
|
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 */
|
slap_bindconf ri_bindconf; /* for back-config */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user