summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--sbin/dump/main.c4
-rw-r--r--sbin/fsdb/fsdb.c4
-rw-r--r--sbin/nfsd/nfsd.c4
-rw-r--r--sbin/restore/main.c6
-rw-r--r--sbin/route/route.c4
-rw-r--r--sbin/scsi/scsi.c6
6 files changed, 14 insertions, 14 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c
index 59fbbc21281..4de6fa2042d 100644
--- a/sbin/dump/main.c
+++ b/sbin/dump/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.57 2015/08/20 22:02:20 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.58 2016/06/07 01:29:38 tedu Exp $ */
/* $NetBSD: main.c,v 1.14 1997/06/05 11:13:24 lukem Exp $ */
/*-
@@ -769,7 +769,7 @@ obsolete(int *argcp, char **argvp[])
/* Copy remaining arguments. */
while ((*nargv++ = *argv++))
- ;
+ continue;
/* Update argument count. */
*argcp = nargv - *argvp - 1;
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index ef0e3570ac9..9206f55b72f 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsdb.c,v 1.29 2015/01/20 18:22:21 deraadt Exp $ */
+/* $OpenBSD: fsdb.c,v 1.30 2016/06/07 01:29:38 tedu Exp $ */
/* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */
/*-
@@ -451,7 +451,7 @@ CMDFUNCSTART(focusname)
}
for (p = argv[1]; p != NULL;) {
while ((val = strsep(&p, "/")) != NULL && *val == '\0')
- ;
+ continue;
if (val) {
printf("component `%s': ", val);
fflush(stdout);
diff --git a/sbin/nfsd/nfsd.c b/sbin/nfsd/nfsd.c
index a20240e390a..057b5d583e8 100644
--- a/sbin/nfsd/nfsd.c
+++ b/sbin/nfsd/nfsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsd.c,v 1.35 2015/01/16 06:40:00 deraadt Exp $ */
+/* $OpenBSD: nfsd.c,v 1.36 2016/06/07 01:29:38 tedu Exp $ */
/* $NetBSD: nfsd.c,v 1.19 1996/02/18 23:18:56 mycroft Exp $ */
/*
@@ -342,6 +342,6 @@ reapchild(int signo)
int save_errno = errno;
while (wait3(NULL, WNOHANG, NULL) > 0)
- ;
+ continue;
errno = save_errno;
}
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;
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 2f28ecda08c..e070fcd0af3 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.182 2015/12/03 08:00:49 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.183 2016/06/07 01:29:38 tedu Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -763,7 +763,7 @@ inet_makenetandmask(u_int32_t net, struct sockaddr_in *sin, int bits)
sin->sin_family = 0;
cp = (char *)(&sin->sin_addr + 1);
while (*--cp == '\0' && cp > (char *)sin)
- ;
+ continue;
sin->sin_len = 1 + cp - (char *)sin;
}
diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c
index a755957b07c..d419c39b87b 100644
--- a/sbin/scsi/scsi.c
+++ b/sbin/scsi/scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.c,v 1.29 2014/11/20 15:22:39 tedu Exp $ */
+/* $OpenBSD: scsi.c,v 1.30 2016/06/07 01:29:38 tedu Exp $ */
/* $FreeBSD: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */
/*
@@ -442,11 +442,11 @@ skipwhite(FILE *f)
skip_again:
while (isspace(c = getc(f)))
- ;
+ continue;
if (c == '#') {
while ((c = getc(f)) != '\n' && c != EOF)
- ;
+ continue;
goto skip_again;
}