summaryrefslogtreecommitdiffstats
path: root/usr.bin/touch
diff options
context:
space:
mode:
authorbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
committerbillf <billf@FreeBSD.org>1999-07-04 17:26:16 +0000
commit4822432874e997891c75df8d30dcab4c52d1a9fa (patch)
tree6a75551fe39c6d09c4b5991bbb0a4f3d685835fe /usr.bin/touch
parent7c7c72da3801ba6f43e728ff5145b4988674abeb (diff)
downloadFreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.zip
FreeBSD-src-4822432874e997891c75df8d30dcab4c52d1a9fa.tar.gz
Clean up some ambiguous nested if/elses.
Diffstat (limited to 'usr.bin/touch')
-rw-r--r--usr.bin/touch/touch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index 30d3677..b56b05f 100644
--- a/usr.bin/touch/touch.c
+++ b/usr.bin/touch/touch.c
@@ -129,7 +129,7 @@ main(argc, argv)
for (rval = 0; *argv; ++argv) {
/* See if the file exists. */
- if (stat(*argv, &sb))
+ if (stat(*argv, &sb)) {
if (!cflag) {
/* Create the file. */
fd = open(*argv,
@@ -145,6 +145,7 @@ main(argc, argv)
continue;
} else
continue;
+ }
if (!aflag)
TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atimespec);
OpenPOWER on IntegriCloud