diff options
author | 2005-04-20 19:16:34 +0000 | |
---|---|---|
committer | 2005-04-20 19:16:34 +0000 | |
commit | 218def5c38712fc725f4f4a9252f1ca0b29f8152 (patch) | |
tree | 458e8c10e70af90f3d3f0550f12277e4b630f61e | |
parent | Remove redundant rw() function, which is unsafe and, well, redundant. (diff) | |
download | wireguard-openbsd-218def5c38712fc725f4f4a9252f1ca0b29f8152.tar.xz wireguard-openbsd-218def5c38712fc725f4f4a9252f1ca0b29f8152.zip |
spacing
-rw-r--r-- | usr.bin/touch/touch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c index 5eb67d669c8..98f87037f11 100644 --- a/usr.bin/touch/touch.c +++ b/usr.bin/touch/touch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: touch.c,v 1.11 2005/04/20 19:13:53 otto Exp $ */ +/* $OpenBSD: touch.c,v 1.12 2005/04/20 19:16:34 deraadt Exp $ */ /* $NetBSD: touch.c,v 1.11 1995/08/31 22:10:06 jtc Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)touch.c 8.2 (Berkeley) 4/28/95"; #endif -static char rcsid[] = "$OpenBSD: touch.c,v 1.11 2005/04/20 19:13:53 otto Exp $"; +static char rcsid[] = "$OpenBSD: touch.c,v 1.12 2005/04/20 19:16:34 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -78,7 +78,7 @@ main(int argc, char *argv[]) err(1, "gettimeofday"); while ((ch = getopt(argc, argv, "acfmr:t:")) != -1) - switch(ch) { + switch (ch) { case 'a': aflag = 1; break; @@ -200,9 +200,9 @@ stime_arg1(char *arg, struct timeval *tvp) *p++ = '\0'; t->tm_sec = ATOI2(p); } - + yearset = 0; - switch(strlen(arg)) { + switch (strlen(arg)) { case 12: /* CCYYMMDDhhmm */ t->tm_year = ATOI2(arg) * 100 - TM_YEAR_BASE; yearset = 1; |