From: Hallvard Furuseth Date: Mon, 13 Oct 2008 05:44:55 +0000 (+0000) Subject: Warning cleanup: Missing braces in initialization. X-Git-Tag: ACLCHECK_0~1266 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=27d6497c33ad1e60c0ff832c0c69b98f6720da4d;p=openldap Warning cleanup: Missing braces in initialization. --- diff --git a/servers/slapd/back-bdb/add.c b/servers/slapd/back-bdb/add.c index b9f7fedc78..402c837b9c 100644 --- a/servers/slapd/back-bdb/add.c +++ b/servers/slapd/back-bdb/add.c @@ -34,7 +34,7 @@ bdb_add(Operation *op, SlapReply *rs ) AttributeDescription *entry = slap_schema.si_ad_entry; DB_TXN *ltid = NULL, *lt2, *rtxn; ID eid = NOID; - struct bdb_op_info opinfo = {0}; + struct bdb_op_info opinfo = {{{ 0 }}}; int subentry; DB_LOCK lock; diff --git a/servers/slapd/back-bdb/delete.c b/servers/slapd/back-bdb/delete.c index b6a33e234c..5979e7cbcd 100644 --- a/servers/slapd/back-bdb/delete.c +++ b/servers/slapd/back-bdb/delete.c @@ -35,7 +35,7 @@ bdb_delete( Operation *op, SlapReply *rs ) AttributeDescription *children = slap_schema.si_ad_children; AttributeDescription *entry = slap_schema.si_ad_entry; DB_TXN *ltid = NULL, *lt2; - struct bdb_op_info opinfo = {0}; + struct bdb_op_info opinfo = {{{ 0 }}}; ID eid; DB_LOCK lock, plock; diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index cf44b7d9e5..0ae77b443e 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -330,7 +330,7 @@ bdb_modify( Operation *op, SlapReply *rs ) char textbuf[SLAP_TEXT_BUFLEN]; size_t textlen = sizeof textbuf; DB_TXN *ltid = NULL, *lt2; - struct bdb_op_info opinfo = {0}; + struct bdb_op_info opinfo = {{{ 0 }}}; Entry dummy = {0}; int fakeroot = 0; diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index c93897525a..42a00f0136 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -36,7 +36,7 @@ bdb_modrdn( Operation *op, SlapReply *rs ) char textbuf[SLAP_TEXT_BUFLEN]; size_t textlen = sizeof textbuf; DB_TXN *ltid = NULL, *lt2; - struct bdb_op_info opinfo = {0}; + struct bdb_op_info opinfo = {{{ 0 }}}; Entry dummy = {0}; Entry *np = NULL; /* newSuperior Entry */ diff --git a/servers/slapd/mr.c b/servers/slapd/mr.c index 91756a2d01..355191491c 100644 --- a/servers/slapd/mr.c +++ b/servers/slapd/mr.c @@ -377,7 +377,7 @@ matching_rule_use_init( void ) LDAP_SLIST_FOREACH( mr, &mr_list, smr_next ) { AttributeType *at; - MatchingRuleUse mru_storage = { 0 }, + MatchingRuleUse mru_storage = {{ 0 }}, *mru = &mru_storage; char **applies_oids = NULL;