mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Reduce warnings: Add missing 0 or NULL initializers for struct members.
This commit is contained in:
parent
6d59c23c55
commit
778a38f49c
6 changed files with 8 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue