diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-28 01:22:57 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-28 01:22:57 +0100 |
commit | 1d3a04a3a4be8682d4317251fc14e81ad655d58a (patch) | |
tree | 2ee72930778afa3a223327fec714c81d936f82dc /util-linux/getopt.c | |
parent | 038a977d47c99c3e59d7a2393799b2afa838604c (diff) | |
download | busybox-w32-1d3a04a3a4be8682d4317251fc14e81ad655d58a.tar.gz busybox-w32-1d3a04a3a4be8682d4317251fc14e81ad655d58a.tar.bz2 busybox-w32-1d3a04a3a4be8682d4317251fc14e81ad655d58a.zip |
Code style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/getopt.c')
-rw-r--r-- | util-linux/getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index 83cc1efea..f6ecc3dde 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -347,9 +347,9 @@ static struct option *add_long_options(struct option *long_options, char *option | |||
347 | 347 | ||
348 | static void set_shell(const char *new_shell) | 348 | static void set_shell(const char *new_shell) |
349 | { | 349 | { |
350 | if (!strcmp(new_shell, "bash") || !strcmp(new_shell, "sh")) | 350 | if (strcmp(new_shell, "bash") == 0 || strcmp(new_shell, "sh") == 0) |
351 | return; | 351 | return; |
352 | if (!strcmp(new_shell, "tcsh") || !strcmp(new_shell, "csh")) | 352 | if (strcmp(new_shell, "tcsh") == 0 || strcmp(new_shell, "csh") == 0) |
353 | option_mask32 |= SHELL_IS_TCSH; | 353 | option_mask32 |= SHELL_IS_TCSH; |
354 | else | 354 | else |
355 | bb_error_msg("unknown shell '%s', assuming bash", new_shell); | 355 | bb_error_msg("unknown shell '%s', assuming bash", new_shell); |