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 !. --- coreutils/touch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils/touch.c') diff --git a/coreutils/touch.c b/coreutils/touch.c index 3e2e600f3..f1c6dc484 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c @@ -53,10 +53,10 @@ extern int touch_main(int argc, char **argv) } while (argc > 0) { - fd = open(*argv, (create == FALSE) ? O_RDWR : O_RDWR | O_CREAT, + fd = open(*argv, create ? O_RDWR | O_CREAT : O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); if (fd < 0) { - if (create == FALSE && errno == ENOENT) { + if (! create && errno == ENOENT) { argc--; argv++; continue; -- cgit v1.2.3-55-g6feb