From 3c7d9415b44213eb95a0e721629ea7a49b18ef10 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 13 Oct 2008 06:20:12 +0000 Subject: [PATCH] Warning cleanup: Missing braces in initialization. --- servers/slapd/overlays/pcache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 40ac4b99ed..ea01254d18 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -1697,7 +1697,7 @@ pcache_remove_entries_from_cache( Filter f = { 0 }; char filtbuf[ LDAP_LUTIL_UUIDSTR_BUFSIZE + STRLENOF( "(entryUUID=)" ) ]; AttributeAssertion ava = ATTRIBUTEASSERTION_INIT; - AttributeName attrs[ 2 ] = { 0 }; + AttributeName attrs[ 2 ] = {{{ 0 }}}; int s, rc; if ( op == NULL ) { @@ -1812,7 +1812,7 @@ pcache_remove_entry_queries_from_cache( Filter f = { 0 }; char filter_str[ LDAP_LUTIL_UUIDSTR_BUFSIZE + STRLENOF( "(queryId=)" ) ]; AttributeAssertion ava = ATTRIBUTEASSERTION_INIT; - AttributeName attrs[ 2 ] = { 0 }; + AttributeName attrs[ 2 ] = {{{ 0 }}}; int rc; BerVarray vals = NULL; @@ -3258,7 +3258,7 @@ pcache_db_open2( BerVarray vals = NULL; Filter f = { 0 }, f2 = { 0 }; AttributeAssertion ava = ATTRIBUTEASSERTION_INIT; - AttributeName attrs[ 2 ] = { 0 }; + AttributeName attrs[ 2 ] = {{{ 0 }}}; connection_fake_init( &conn, &opbuf, thrctx ); op = &opbuf.ob_op; @@ -3424,7 +3424,7 @@ pcache_db_close( slap_callback cb = { 0 }; SlapReply rs = { REP_RESULT }; - Modifications mod = { 0 }; + Modifications mod = {{ 0 }}; thrctx = ldap_pvt_thread_pool_context();