Reduce warnings: Add missing 0 or NULL initializers for struct members.

This commit is contained in:
Hallvard Furuseth 2003-04-29 16:36:19 +00:00
parent 6d59c23c55
commit 778a38f49c
6 changed files with 8 additions and 8 deletions

View file

@ -11,7 +11,7 @@
#include "lber-int.h"
struct lber_options ber_int_options = {
LBER_UNINITIALIZED, 0, 0 };
LBER_UNINITIALIZED, 0, 0, 0 };
int
ber_get_option(

View file

@ -76,7 +76,7 @@ main( int argc, char *argv[] )
static int filter2ber( char *filter )
{
int rc;
struct berval bv = {0};
struct berval bv = {0, NULL};
BerElement *ber;
printf( "Filter: %s\n", filter );

View file

@ -244,7 +244,7 @@ glue_back_search ( Operation *op, SlapReply *rs )
int i;
long stoptime = 0;
glue_state gs = {0, 0, NULL, 0, NULL, NULL};
slap_callback cb = { glue_back_response };
slap_callback cb = { glue_back_response, NULL };
int scope0, slimit0, tlimit0;
struct berval dn, ndn;

View file

@ -422,7 +422,7 @@ slap_auxprop_lookup(
}
if (doit) {
slap_callback cb = { sasl_ap_lookup };
slap_callback cb = { sasl_ap_lookup, NULL };
cb.sc_private = &sl;
@ -548,7 +548,7 @@ slap_sasl_checkpass(
op.o_bd = select_backend( &op.o_req_ndn, 0, 1 );
if ( op.o_bd && op.o_bd->be_search ) {
slap_callback cb = { sasl_cb_checkpass };
slap_callback cb = { sasl_cb_checkpass, NULL };
SlapReply rs = {REP_RESULT};
ci.cred.bv_val = (char *)pass;

View file

@ -389,7 +389,7 @@ int slap_sasl_match(Operation *opx, struct berval *rule, struct berval *assertDN
int rc;
regex_t reg;
smatch_info sm;
slap_callback cb = { sasl_sc_smatch };
slap_callback cb = { sasl_sc_smatch, NULL };
Operation op = {0};
SlapReply rs = {REP_RESULT};
@ -548,7 +548,7 @@ void slap_sasl2dn( Operation *opx,
struct berval *saslname, struct berval *sasldn )
{
int rc;
slap_callback cb = { sasl_sc_sasl2dn };
slap_callback cb = { sasl_sc_sasl2dn, NULL };
Operation op = {0};
SlapReply rs = {REP_RESULT};
struct berval regout = { 0, NULL };

View file

@ -770,7 +770,7 @@ static struct slap_schema_ad_map {
NULL, NULL, NULL, NULL, NULL,
offsetof(struct slap_internal_schema, si_ad_krbName) },
#endif
{ NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0 }
{ NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0 }
};
static AttributeType slap_at_undefined = {