From: Benjamin Kaduk Date: Thu, 9 Jan 2014 17:13:27 +0000 (-0500) Subject: ktc: fix up initializer for local_tokens X-Git-Tag: upstream/1.8.0_pre1^2~856 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cb52cc6e44ed85515cc81685adacd7c40a48b8db;p=packages%2Fo%2Fopenafs.git ktc: fix up initializer for local_tokens The old initializer was incomplete (initializing only one of the four fields in the struct), which prompted warnings from clang (-Wmissing-field-initializers): ../../../openafs/src/auth/ktc.c:149:2: warning: missing field 'server' initializer [-Wmissing-field-initializers] Since the variable is at file scope, it will be initialized to all zeros anyway, and there is no need for an explicit initializer. Change-Id: Ib7690759ec3403d1913852e30bb553ef8ac8f019 Reviewed-on: http://gerrit.openafs.org/10686 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/auth/ktc.c b/src/auth/ktc.c index 9500ec835..002f53bb5 100644 --- a/src/auth/ktc.c +++ b/src/auth/ktc.c @@ -145,11 +145,7 @@ static struct { struct ktc_principal server; struct ktc_principal client; struct ktc_token token; -} local_tokens[MAXLOCALTOKENS] = { { -0}, { -0}, { -0}, { -0}}; +} local_tokens[MAXLOCALTOKENS]; static int GetToken(struct ktc_principal *aserver, struct ktc_token *atoken,