farp: Fix incompatible function types warning
This commit is contained in:
@@ -139,10 +139,8 @@ static void send_arp(private_farp_spoofer_t *this,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
CALLBACK(receive_arp, bool,
|
||||||
* ARP request receiving
|
private_farp_spoofer_t *this, int fd, watcher_event_t event)
|
||||||
*/
|
|
||||||
static bool receive_arp(private_farp_spoofer_t *this)
|
|
||||||
{
|
{
|
||||||
struct sockaddr_ll addr;
|
struct sockaddr_ll addr;
|
||||||
socklen_t addr_len = sizeof(addr);
|
socklen_t addr_len = sizeof(addr);
|
||||||
@@ -227,8 +225,7 @@ farp_spoofer_t *farp_spoofer_create(farp_listener_t *listener)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
lib->watcher->add(lib->watcher, this->skt, WATCHER_READ,
|
lib->watcher->add(lib->watcher, this->skt, WATCHER_READ, receive_arp, this);
|
||||||
(watcher_cb_t)receive_arp, this);
|
|
||||||
|
|
||||||
return &this->public;
|
return &this->public;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user