Patchwork [09/11] fedfs-map-nfs4: Silence a sparse warning

login
register
mail settings
Submitter Chuck Lever
Date Oct. 19, 2012, 9:08 p.m.
Message ID <20121019210855.53119.32569.stgit@seurat.1015granger.net>
Download mbox | patch
Permalink /patch/192814/
State Accepted
Headers show

Comments

Chuck Lever - Oct. 19, 2012, 9:08 p.m.
Address this sparse warning:

fedfs-map-nfs4.c:73:6: warning: symbol 'progname' was not declared. Should
it be static?

Introduced by commit 4bd89735 "mount: Add automounter program map for
FedFS" September 3, 2011.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

 src/mount/fedfs-map-nfs4.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/src/mount/fedfs-map-nfs4.c b/src/mount/fedfs-map-nfs4.c
index 8376b6b..38d930d 100644
--- a/src/mount/fedfs-map-nfs4.c
+++ b/src/mount/fedfs-map-nfs4.c
@@ -70,7 +70,7 @@ 
  */
 #define FEDFS_NFS4_EXPORTPATH_RW	"/.domainroot-write"
 
-char *progname;
+static char *progname;
 
 /**
  * Display usage message