From c3d7ff736bf14fd86f3f3f1246bc66d5e1afbc65 Mon Sep 17 00:00:00 2001 From: kraai Date: Thu, 20 Dec 2001 23:13:26 +0000 Subject: 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 --- 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