I have the following code:
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
Code:
static u_int8_t * ieee80211_add_ssid(u_int8_t *frm, const u_int8_t ........id, u_int len)
This compiles fine on 32 bit but on 64bit I get this warning
Code:
warning: cast to pointer from integer of different size
on the first line.
I can't quite get my head around what the problem is and how to cast arg into the right type so that it will work and compile. This is just beyond by pointer skills, I feel I should be able to work it out but have stared at it for an hour and not managed to suss it out. Some help please.