summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-07-01 11:10:31 -0400
committerSteve Dickson <steved@redhat.com>2013-07-01 12:03:11 -0400
commitc8887780aec02209db27f397b0e4b1f6fc065071 (patch)
tree8fc7239ad32b112ca93e223e073f349d696a06b5
parenta2bdacaa4184d5d921fb1da5f7789078412b1afe (diff)
downloadnfs-utils-c8887780aec02209db27f397b0e4b1f6fc065071.tar.gz
nfs-utils-c8887780aec02209db27f397b0e4b1f6fc065071.tar.xz
nfs-utils-c8887780aec02209db27f397b0e4b1f6fc065071.zip
gssd: remove redundant array size.
When initialising an array there is no need to specify the size as the size is taken from the initialiser. Having the size there means that any change to the initialiser needs to change the size to and so is error-prone. So just remove the size. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/gssd/krb5_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c
index 6275dd8..9ef80f0 100644
--- a/utils/gssd/krb5_util.c
+++ b/utils/gssd/krb5_util.c
@@ -1236,7 +1236,7 @@ gssd_refresh_krb5_machine_credential(char *hostname,
krb5_keytab kt = NULL;;
int retval = 0;
char *k5err = NULL;
- const char *svcnames[5] = { "$", "root", "nfs", "host", NULL };
+ const char *svcnames[] = { "$", "root", "nfs", "host", NULL };
/*
* If a specific service name was specified, use it.