Patchwork [07/11] fedfsd: Address sparse warning in rpc.fedfsd

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

Comments

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

main.c:74:6: warning: symbol 'fedfsd_usage' was not declared. Should it be
static?

Introduced by commit 0520ee72 "Initial commit" March 29, 2011.

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

 src/fedfsd/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/src/fedfsd/main.c b/src/fedfsd/main.c
index fd6bee5..59cb12a 100644
--- a/src/fedfsd/main.c
+++ b/src/fedfsd/main.c
@@ -71,7 +71,7 @@  static const struct option fedfsd_longopts[] =
  *
  * @param progname NUL-terminated C string containing name of program
  */
-void fedfsd_usage(const char *progname)
+static void fedfsd_usage(const char *progname)
 {
 	fprintf(stderr, "\nUsage: %s [options]\n\n", progname);