bootpd/wpa_supplicant: Fix some warnings.
authorSascha Wildner <saw@online.de>
Sun, 8 Apr 2018 21:03:49 +0000 (23:03 +0200)
committerSascha Wildner <saw@online.de>
Sun, 8 Apr 2018 21:03:49 +0000 (23:03 +0200)
libexec/bootpd/tools/bootptest/print-bootp.c
usr.sbin/802_11/wpa_supplicant/Packet32.c

index 4f7fbff..8b15dfb 100644 (file)
@@ -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). */
index 3e263e4..b0e3833 100644 (file)
@@ -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;