From 4822432874e997891c75df8d30dcab4c52d1a9fa Mon Sep 17 00:00:00 2001 From: billf Date: Sun, 4 Jul 1999 17:26:16 +0000 Subject: Clean up some ambiguous nested if/elses. --- usr.bin/touch/touch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/touch') 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); -- cgit v1.1