aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-20 23:13:26 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-12-20 23:13:26 +0000
commitc3d7ff736bf14fd86f3f3f1246bc66d5e1afbc65 (patch)
tree97414e991363fa613f229019d697280cae1097e0 /shell
parent62ecfc62e8eb535636f3c1029052f4b13b9b2183 (diff)
downloadbusybox-w32-c3d7ff736bf14fd86f3f3f1246bc66d5e1afbc65.tar.gz
busybox-w32-c3d7ff736bf14fd86f3f3f1246bc66d5e1afbc65.tar.bz2
busybox-w32-c3d7ff736bf14fd86f3f3f1246bc66d5e1afbc65.zip
Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.
git-svn-id: svn://busybox.net/trunk/busybox@3925 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
-rw-r--r--shell/cmdedit.c4
-rw-r--r--shell/lash.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 16c5ec0f2..177ec1c26 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8172,7 +8172,7 @@ umaskcmd(int argc, char **argv)
8172 umask(mask); 8172 umask(mask);
8173 } else { 8173 } else {
8174 mask = ~mask & 0777; 8174 mask = ~mask & 0777;
8175 if (parse_mode(ap, &mask) == FALSE) { 8175 if (! parse_mode(ap, &mask)) {
8176 error("Illegal mode: %s", ap); 8176 error("Illegal mode: %s", ap);
8177 } 8177 }
8178 umask(~mask & 0777); 8178 umask(~mask & 0777);
@@ -12481,7 +12481,7 @@ findvar(struct var **vpp, const char *name)
12481/* 12481/*
12482 * Copyright (c) 1999 Herbert Xu <herbert@debian.org> 12482 * Copyright (c) 1999 Herbert Xu <herbert@debian.org>
12483 * This file contains code for the times builtin. 12483 * This file contains code for the times builtin.
12484 * $Id: ash.c,v 1.37 2001/12/06 03:37:38 aaronl Exp $ 12484 * $Id: ash.c,v 1.38 2001/12/20 23:13:19 kraai Exp $
12485 */ 12485 */
12486static int timescmd (int argc, char **argv) 12486static int timescmd (int argc, char **argv)
12487{ 12487{
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index d57e4c12b..b90891587 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -769,7 +769,7 @@ static char **exe_n_cwd_tab_completion(char *command, int *num_matches,
769 goto cont; 769 goto cont;
770 str_found = add_quote_for_spec_chars(found); 770 str_found = add_quote_for_spec_chars(found);
771 if (type == FIND_FILE_ONLY || 771 if (type == FIND_FILE_ONLY ||
772 (type == FIND_EXE_ONLY && is_execute(&st) == TRUE)) 772 (type == FIND_EXE_ONLY && is_execute(&st)))
773 strcat(str_found, " "); 773 strcat(str_found, " ");
774 } 774 }
775 /* Add it to the list */ 775 /* Add it to the list */
@@ -980,7 +980,7 @@ static void input_tab(int *lastWasTab)
980 } 980 }
981 return; 981 return;
982 } 982 }
983 if (*lastWasTab == FALSE) { 983 if (! *lastWasTab) {
984 984
985 char *tmp; 985 char *tmp;
986 int len_found; 986 int len_found;
diff --git a/shell/lash.c b/shell/lash.c
index 4155f8dd2..53377d4ed 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1437,7 +1437,7 @@ static int busy_loop(FILE * input)
1437 next_command = command; 1437 next_command = command;
1438 } 1438 }
1439 1439
1440 if (expand_arguments(next_command) == FALSE) { 1440 if (! expand_arguments(next_command)) {
1441 free(command); 1441 free(command);
1442 command = (char *) xcalloc(BUFSIZ, sizeof(char)); 1442 command = (char *) xcalloc(BUFSIZ, sizeof(char));
1443 next_command = NULL; 1443 next_command = NULL;