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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
Benjamin Kaduk 2014-01-09 12:13:27 -05:00 committed by Derrick Brashear
parent 2d5f0a971b
commit cb52cc6e44

View File

@ -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,