]> git.sur5r.net Git - openldap/commitdiff
Warning cleanup: Missing braces in initialization.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 13 Oct 2008 05:44:55 +0000 (05:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 13 Oct 2008 05:44:55 +0000 (05:44 +0000)
servers/slapd/back-bdb/add.c
servers/slapd/back-bdb/delete.c
servers/slapd/back-bdb/modify.c
servers/slapd/back-bdb/modrdn.c
servers/slapd/mr.c

index b9f7fedc7893f64c3a800328a9d1cb275ba30eaa..402c837b9cc9f531bb55fadc7cb1a7d779f62dca 100644 (file)
@@ -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;
 
index b6a33e234c0980b1255ae8d9e6c5ae15400e4485..5979e7cbcd602e32f0388d9092b47cf1d6fe0fc3 100644 (file)
@@ -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;
index cf44b7d9e501da6b2c977ba8f696b90ac9c0b252..0ae77b443e02c5bcc89b4e61215fa5619a2a96cb 100644 (file)
@@ -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;
 
index c93897525a528b882676180f5c36d6d3949ead93..42a00f01364ba838d8d84c6c78e16cbdf5bf5080 100644 (file)
@@ -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 */
index 91756a2d01cf233b438af118940bc48dbf7955be..355191491c3a7911f30c641e6babdbeb08a8d80d 100644 (file)
@@ -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;