diff options
author | Matt Kraai <kraai@debian.org> | 2001-12-21 02:13:26 +0300 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-12-21 02:13:26 +0300 |
commit | 1f0c43668ac332cbcf61cbdf71844799327cc8b9 (patch) | |
tree | 97414e991363fa613f229019d697280cae1097e0 /coreutils/touch.c | |
parent | 31c73af656813b5cadcb1dd27adb9bbc62a98987 (diff) |
Remove `== TRUE' tests and convert `!= TRUE' and `== FALSE' tests to use !.
Diffstat (limited to 'coreutils/touch.c')
-rw-r--r-- | coreutils/touch.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |