From patchwork Mon Jun 3 01:00:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 2650401 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 6D8AB3FD4E for ; Mon, 3 Jun 2013 01:00:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755323Ab3FCBA4 (ORCPT ); Sun, 2 Jun 2013 21:00:56 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35997 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755253Ab3FCBA4 (ORCPT ); Sun, 2 Jun 2013 21:00:56 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id ACD09A51BB; Mon, 3 Jun 2013 03:00:55 +0200 (CEST) From: Neil Brown To: Steve Dickson Date: Mon, 03 Jun 2013 11:00:21 +1000 Subject: [PATCH 1/3] krb5_utils: remove redundant array size. Cc: linux-nfs@vger.kernel.org, Chuck Lever Message-ID: <20130603010021.20080.24416.stgit@notabene.brown> In-Reply-To: <20130603005219.20080.1927.stgit@notabene.brown> References: <20130603005219.20080.1927.stgit@notabene.brown> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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 --- utils/gssd/krb5_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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.