converting a 32 to 64 bit app - casting different size pointers
I have the following code:
where arg is an int and ieee80211_add_ssid is defined as
u_int8_t* ssid = (u_int8_t*)arg;
frm = ieee80211_add_ssid(frm, ssid + 2, ssid);
This compiles fine on 32 bit but on 64bit I get this warning
static u_int8_t * ieee80211_add_ssid(u_int8_t *frm, const u_int8_t ........id, u_int len)
on the first line.
warning: cast to pointer from integer of different size
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.