summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mopd
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-12-25 16:40:06 +0000
committerkrw <krw@openbsd.org>2016-12-25 16:40:06 +0000
commit20ac30d675e6478bd6b7b2d6d68a1c486210c4fd (patch)
treecfa97187c5229e1a768b3fb50093d083a3314b9f /usr.sbin/mopd
parentRegenerate with -current rpcgen, eliminating "unused variable 'i'" (diff)
downloadwireguard-openbsd-20ac30d675e6478bd6b7b2d6d68a1c486210c4fd.tar.xz
wireguard-openbsd-20ac30d675e6478bd6b7b2d6d68a1c486210c4fd.zip
Add some {}'s to eliminate "ambiguous else" warnings from gcc.
ok tb@ millert@
Diffstat (limited to 'usr.sbin/mopd')
-rw-r--r--usr.sbin/mopd/common/dl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mopd/common/dl.c b/usr.sbin/mopd/common/dl.c
index 87cf6b87e28..76baa16fd83 100644
--- a/usr.sbin/mopd/common/dl.c
+++ b/usr.sbin/mopd/common/dl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dl.c,v 1.8 2009/10/27 23:59:52 deraadt Exp $ */
+/* $OpenBSD: dl.c,v 1.9 2016/12/25 16:40:06 krw Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
@@ -96,7 +96,7 @@ mopDumpDL(FILE *fd, u_char *pkt, int trans)
if (moplen > 6) {
for (i = 0; i < (moplen - 6); i++) {
- if ((i % 16) == 0)
+ if ((i % 16) == 0) {
if ((i / 16) == 0)
fprintf(fd,
"Image Data : %04x ",
@@ -104,6 +104,7 @@ mopDumpDL(FILE *fd, u_char *pkt, int trans)
else
fprintf(fd,
" ");
+ }
fprintf(fd, "%02x ", mopGetChar(pkt, &idx));
if ((i % 16) == 15)