I'll have a dig through, see where arg comes from and how many times it is used. If it isn't too many I'll look at changing it to a long, if there are loads I'll just leave my patches at 32 bit.
Type: Posts; User: digininja
I'll have a dig through, see where arg comes from and how many times it is used. If it isn't too many I'll look at changing it to a long, if there are loads I'll just leave my patches at 32 bit.
Thanks for clearing that up. It will save me a good few hours of staring and wondering why things aren't working.
arg is an int unfortunately.
The code isn't mine, I'm doning some mods to the madwifi-ng wifi drivers. They work fine on 32 bit but now people want them in 64 bit so I'm trying to fit them in.
...
I have the following code:
u_int8_t* ssid = (u_int8_t*)arg;
frm = ieee80211_add_ssid(frm, ssid + 2, ssid[1]);
where arg is an int and ieee80211_add_ssid is defined as
static u_int8_t *...