error: static declaration of 'call80211ioctl' follows non-static declaration
call80211ioctl ( struct atheros_driver_data *drv, int op, struct iwreq *iwr )
^
error code
static int get80211param ( struct atheros_driver_data *drv, char *ifname, int op, int *data )
{
if ( call80211ioctl ( drv, IEEE80211_IOCTL_GETPARAM, &iwr) < 0 )
return -1;
}
static int call80211ioctl ( struct atheros_driver_data *drv, int op, struct iwreq *iwr )
{
...
}
explain
因爲在檔案的最前面沒有先宣告 call80211ioctl(),
且 call80211ioctl() 寫在 get80211param() 後面,
所以在 get80211param 要呼叫 call80211ioctl() 時, 並不知道有 call80211ioctl()
沒有留言:
張貼留言