Insert missing initializers, to silence gcc warnings.

This commit is contained in:
Hallvard Furuseth 2003-01-19 13:38:44 +00:00
parent 933121a7d9
commit 265b7e22c6
9 changed files with 16 additions and 16 deletions

View File

@ -126,7 +126,7 @@ main( int argc, char *argv[] )
char *user = NULL;
LDAP *ld = NULL;
struct berval bv = {0};
struct berval bv = {0, NULL};
BerElement *ber = NULL;
int id, code = LDAP_OTHER;

View File

@ -71,7 +71,7 @@ ldap_passwd( LDAP *ld,
int *msgidp )
{
int rc;
struct berval bv = {0};
struct berval bv = {0, NULL};
BerElement *ber = NULL;
assert( ld != NULL );

View File

@ -274,7 +274,7 @@ presence_candidates(
DB *db;
int rc;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
#ifdef NEW_LOGGING
LDAP_LOG ( INDEX, ENTRY, "=> bdb_presence_candidates\n", 0, 0, 0 );
@ -371,7 +371,7 @@ equality_candidates(
int i;
int rc;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
struct berval *keys = NULL;
MatchingRule *mr;
@ -516,7 +516,7 @@ approx_candidates(
int i;
int rc;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
struct berval *keys = NULL;
MatchingRule *mr;
@ -663,7 +663,7 @@ substring_candidates(
int i;
int rc;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
struct berval *keys = NULL;
MatchingRule *mr;

View File

@ -219,7 +219,7 @@ presence_candidates(
int rc;
char *dbname;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
#ifdef NEW_LOGGING
LDAP_LOG( FILTER, ENTRY, "presence_candidates: enter\n", 0, 0, 0 );
@ -333,7 +333,7 @@ equality_candidates(
int rc;
char *dbname;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
struct berval *keys = NULL;
MatchingRule *mr;
@ -507,7 +507,7 @@ approx_candidates(
int rc;
char *dbname;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
struct berval *keys = NULL;
MatchingRule *mr;
@ -742,7 +742,7 @@ substring_candidates(
int rc;
char *dbname;
slap_mask_t mask;
struct berval prefix = {0};
struct berval prefix = {0, NULL};
struct berval *keys = NULL;
MatchingRule *mr;

View File

@ -295,7 +295,7 @@ glue_back_search (
BackendDB *be;
int i, rc = 0, t2limit = 0, s2limit = 0;
long stoptime = 0;
glue_state gs = {0};
glue_state gs = {0, 0, 0, NULL, 0, NULL, NULL};
slap_callback cb;
cb.sc_response = glue_back_response;

View File

@ -44,7 +44,7 @@ do_compare(
struct berval ndn = { 0, NULL };
struct berval desc = { 0, NULL };
struct berval value = { 0, NULL };
AttributeAssertion ava = { 0 };
AttributeAssertion ava = { NULL, { 0, NULL } };
Backend *be;
int rc = LDAP_SUCCESS;
const char *text = NULL;

View File

@ -97,7 +97,7 @@ static struct slap_control {
SLAP_CTRL_SEARCH, NULL,
parseClientUpdate },
#endif /* LDAP_CLIENT_UPDATE */
{ NULL }
{ NULL, 0, NULL, 0 }
};
char *

View File

@ -84,7 +84,7 @@ static STRDISP syslog_types[] = {
{ "LOCAL5", sizeof("LOCAL5"), LOG_LOCAL5 },
{ "LOCAL6", sizeof("LOCAL6"), LOG_LOCAL6 },
{ "LOCAL7", sizeof("LOCAL7"), LOG_LOCAL7 },
{ NULL }
{ NULL, 0, 0 }
};
static int cnvt_str2int( char *, STRDISP_P, int );

View File

@ -764,13 +764,13 @@ static struct slap_schema_ad_map {
offsetof(struct slap_internal_schema, si_ad_krbName) },
#endif
{ NULL, NULL, NULL, 0, NULL, NULL, NULL, 0 }
{ NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0 }
};
static AttributeType slap_at_undefined = {
{ "1.1.1", NULL, NULL, 1, NULL,
NULL, NULL, NULL, NULL,
0, 0, 0, 1, 3 }, /* LDAPAttributeType */
0, 0, 0, 1, 3, NULL }, /* LDAPAttributeType */
{ sizeof("UNDEFINED")-1, "UNDEFINED" }, /* cname */
NULL, /* sup */
NULL, /* subtypes */