summaryrefslogtreecommitdiffstats
path: root/sbin/restore/main.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2016-06-07 01:29:38 +0000
committertedu <tedu@openbsd.org>2016-06-07 01:29:38 +0000
commit252fb110d292fd9dcb15c00b1d34dba43ce70757 (patch)
tree8f229692150b70f7fd783e08a41c7aca062d558d /sbin/restore/main.c
parentSet BN_FLG_CONSTTIME on the correct variable. beck committed wrong fix. (diff)
downloadwireguard-openbsd-252fb110d292fd9dcb15c00b1d34dba43ce70757.tar.xz
wireguard-openbsd-252fb110d292fd9dcb15c00b1d34dba43ce70757.zip
per trending style, add continue to emtpy loop bodies.
ok mglocker
Diffstat (limited to 'sbin/restore/main.c')
-rw-r--r--sbin/restore/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/restore/main.c b/sbin/restore/main.c
index 284c4ba94f0..b564f957abc 100644
--- a/sbin/restore/main.c
+++ b/sbin/restore/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.23 2015/01/20 18:22:21 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.24 2016/06/07 01:29:38 tedu Exp $ */
/* $NetBSD: main.c,v 1.13 1997/07/01 05:37:51 lukem Exp $ */
/*
@@ -88,7 +88,7 @@ main(int argc, char *argv[])
if ((tmpdir = strdup(tmpdir)) == NULL)
err(1, NULL);
for (p = tmpdir + strlen(tmpdir) - 1; p >= tmpdir && *p == '/'; p--)
- ;
+ continue;
obsolete(&argc, &argv);
while ((ch = getopt(argc, argv, "b:cdf:himNRrs:tvxy")) != -1)
switch(ch) {
@@ -344,7 +344,7 @@ obsolete(int *argcp, char **argvp[])
/* Copy remaining arguments. */
while ((*nargv++ = *argv++))
- ;
+ continue;
/* Update argument count. */
*argcp = nargv - *argvp - 1;