diff options
author | Sami Kerola | 2017-02-12 01:19:33 +0100 |
---|---|---|
committer | Karel Zak | 2017-02-20 12:58:49 +0100 |
commit | 2ba641e5f3879593e36fa84872289872a4060d03 (patch) | |
tree | 4381e82a91b01343555d803c8afe772e1d15826d /misc-utils/getopt.c | |
parent | misc: do not use plain 0 as NULL [smatch scan] (diff) | |
download | kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.gz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.xz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.zip |
misc: add static keyword to where needed [smatch scan]
text-utils/rev.c:68:9: warning: symbol 'buf' was not declared. Should it be
static?
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/getopt.c')
-rw-r--r-- | misc-utils/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c index 94cfec5ad..af4cf386a 100644 --- a/misc-utils/getopt.c +++ b/misc-utils/getopt.c @@ -97,8 +97,8 @@ struct getopt_control { enum { REALLOC_INCREMENT = 8 }; /* Allow changing which getopt is in use with function pointer. */ -int (*getopt_long_fp) (int argc, char *const *argv, const char *optstr, - const struct option * longopts, int *longindex); +static int (*getopt_long_fp) (int argc, char *const *argv, const char *optstr, + const struct option * longopts, int *longindex); /* * This function 'normalizes' a single argument: it puts single quotes |