]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - src/libcharon/plugins/eap_radius/eap_radius_dae.c
eap-radius: Fix incompatible function types warnings
[people/ms/strongswan.git] / src / libcharon / plugins / eap_radius / eap_radius_dae.c
index fc9b39c3e1bb4dd091989ed4674998f25f542036..9a5535ea26bee7437fc45548804d2fc174a6c5f5 100644 (file)
@@ -379,7 +379,8 @@ static void process_coa(private_eap_radius_dae_t *this,
 /**
  * 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);
@@ -530,8 +531,7 @@ eap_radius_dae_t *eap_radius_dae_create(eap_radius_accounting_t *accounting)
                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;
 }