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 /login-utils | |
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 'login-utils')
-rw-r--r-- | login-utils/sulogin.c | 10 | ||||
-rw-r--r-- | login-utils/vipw.c | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c index b1e8c90f4..9f539d791 100644 --- a/login-utils/sulogin.c +++ b/login-utils/sulogin.c @@ -71,11 +71,11 @@ static unsigned int timeout; static int profile; static volatile uint32_t openfd; /* Remember higher file descriptors */ -struct sigaction saved_sigint; -struct sigaction saved_sigtstp; -struct sigaction saved_sigquit; -struct sigaction saved_sighup; -struct sigaction saved_sigchld; +static struct sigaction saved_sigint; +static struct sigaction saved_sigtstp; +static struct sigaction saved_sigquit; +static struct sigaction saved_sighup; +static struct sigaction saved_sigchld; static volatile sig_atomic_t alarm_rised; static volatile sig_atomic_t sigchild; diff --git a/login-utils/vipw.c b/login-utils/vipw.c index d12ea7316..4d8592434 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -81,9 +81,9 @@ enum { VIPW, VIGR }; -int program; -char orig_file[FILENAMELEN]; /* original file /etc/passwd or /etc/group */ -char *tmp_file; /* tmp file */ +static int program; +static char orig_file[FILENAMELEN]; /* original file /etc/passwd or /etc/group */ +static char *tmp_file; /* tmp file */ void pw_error (char *, int, int); |