From 60f53c8a5dd70dd77aaaf0036d173907ef2d36d3 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 8 Apr 2018 23:03:49 +0200 Subject: [PATCH] bootpd/wpa_supplicant: Fix some warnings. --- libexec/bootpd/tools/bootptest/print-bootp.c | 2 +- usr.sbin/802_11/wpa_supplicant/Packet32.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libexec/bootpd/tools/bootptest/print-bootp.c b/libexec/bootpd/tools/bootptest/print-bootp.c index 4f7fbff6b6..8b15dfb000 100644 --- a/libexec/bootpd/tools/bootptest/print-bootp.c +++ b/libexec/bootpd/tools/bootptest/print-bootp.c @@ -305,7 +305,7 @@ rfc1048_print(u_char *bp, int length) len = *bp++; if (bp + len > ep) { /* truncated option */ - printf(" |(%d>%d)", len, ep - bp); + printf(" |(%d>%td)", len, ep - bp); return; } /* Print the option value(s). */ diff --git a/usr.sbin/802_11/wpa_supplicant/Packet32.c b/usr.sbin/802_11/wpa_supplicant/Packet32.c index 3e263e4b73..b0e3833b98 100644 --- a/usr.sbin/802_11/wpa_supplicant/Packet32.c +++ b/usr.sbin/802_11/wpa_supplicant/Packet32.c @@ -113,7 +113,6 @@ PacketOpenAdapter(CHAR *iface) { struct adapter *a; int s; - int ifflags; struct ifreq ifr; struct ieee80211req ireq; @@ -244,7 +243,7 @@ PacketGetAdapterNames(CHAR *namelist, ULONG *len) char *buf, *lim, *next; char *plist; int spc; - int i, ifcnt = 0; + int ifcnt = 0; plist = namelist; spc = 0; -- 2.41.0