From 1f0c43668ac332cbcf61cbdf71844799327cc8b9 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Thu, 20 Dec 2001 23:13:26 +0000 Subject: Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !. --- shell/ash.c | 4 ++-- shell/cmdedit.c | 4 ++-- shell/lash.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'shell') 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) umask(mask); } else { mask = ~mask & 0777; - if (parse_mode(ap, &mask) == FALSE) { + if (! parse_mode(ap, &mask)) { error("Illegal mode: %s", ap); } umask(~mask & 0777); @@ -12481,7 +12481,7 @@ findvar(struct var **vpp, const char *name) /* * Copyright (c) 1999 Herbert Xu * This file contains code for the times builtin. - * $Id: ash.c,v 1.37 2001/12/06 03:37:38 aaronl Exp $ + * $Id: ash.c,v 1.38 2001/12/20 23:13:19 kraai Exp $ */ static int timescmd (int argc, char **argv) { 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, goto cont; str_found = add_quote_for_spec_chars(found); if (type == FIND_FILE_ONLY || - (type == FIND_EXE_ONLY && is_execute(&st) == TRUE)) + (type == FIND_EXE_ONLY && is_execute(&st))) strcat(str_found, " "); } /* Add it to the list */ @@ -980,7 +980,7 @@ static void input_tab(int *lastWasTab) } return; } - if (*lastWasTab == FALSE) { + if (! *lastWasTab) { char *tmp; 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) next_command = command; } - if (expand_arguments(next_command) == FALSE) { + if (! expand_arguments(next_command)) { free(command); command = (char *) xcalloc(BUFSIZ, sizeof(char)); next_command = NULL; -- cgit v1.2.3