/**
* Receive RADIUS DAE requests
*/
-static bool receive(private_eap_radius_dae_t *this)
+CALLBACK(receive, bool,
+ private_eap_radius_dae_t *this, int fd, watcher_event_t event)
{
struct sockaddr_storage addr;
socklen_t addr_len = sizeof(addr);
return NULL;
}
- lib->watcher->add(lib->watcher, this->fd, WATCHER_READ,
- (watcher_cb_t)receive, this);
+ lib->watcher->add(lib->watcher, this->fd, WATCHER_READ, receive, this);
return &this->public;
}