summaryrefslogtreecommitdiffstats
path: root/sbin/restore/main.c
diff options
context:
space:
mode:
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;