On Sat, Aug 04, 2018 at 09:19:46PM +0200, Sebastian Benoit wrote:
> in the SIOCG80211ALLNODES ioctl case,
> the proper type for i should be size_t,
> also give it a nicer name and remove a tab.
I like the idea but your diff does not apply.

> (benno_net80211_use_sizet_in_ioctl.diff)
> diff --git sys/net80211/ieee80211_ioctl.c sys/net80211/ieee80211_ioctl.c
> index b41b4fe09d8..6aebb432522 100644
> --- sys/net80211/ieee80211_ioctl.c
> +++ sys/net80211/ieee80211_ioctl.c
> @@ -175,7 +175,7 @@ ieee80211_disable_wep(struct ieee80211com *ic)
>  {
>       struct ieee80211_key *k;
>       int i;
> -     
> +
>       for (i = 0; i < IEEE80211_WEP_NKID; i++) {
>               k = &ic->ic_nw_keys[i];
>               if (k->k_cipher != IEEE80211_CIPHER_NONE)
> @@ -390,7 +390,7 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t 
> data)
>  {
>       struct ieee80211com *ic = (void *)ifp;
>       struct ifreq *ifr = (struct ifreq *)data;
> -     int i, error = 0;
> +     int error = 0;
>       size_t len;
        ^ not in current.

Reply via email to