diff options
author | Karel Zak | 2015-01-06 11:00:51 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-06 11:00:51 +0100 |
commit | 4a98629b293a531e5f17369b77935163b89a5dea (patch) | |
tree | 14be9ed98cba465425843492e2a2f9264f11c914 | |
parent | chsh: simplify get_shell_list() (diff) | |
download | kernel-qcow2-util-linux-4a98629b293a531e5f17369b77935163b89a5dea.tar.gz kernel-qcow2-util-linux-4a98629b293a531e5f17369b77935163b89a5dea.tar.xz kernel-qcow2-util-linux-4a98629b293a531e5f17369b77935163b89a5dea.zip |
chsh: keep struct options in .rodata
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | login-utils/chsh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/chsh.c b/login-utils/chsh.c index fd2893e95..51f575d65 100644 --- a/login-utils/chsh.c +++ b/login-utils/chsh.c @@ -125,7 +125,7 @@ static int get_shell_list(const char *shell_name) */ static void parse_argv(int argc, char **argv, struct sinfo *pinfo) { - const struct option long_options[] = { + static const struct option long_options[] = { {"shell", required_argument, 0, 's'}, {"list-shells", no_argument, 0, 'l'}, {"help", no_argument, 0, 'u'}, |