It is used as an event callback, so needs to have the
fr_event_callback_t signature.
#define FINAL_STATE(_x) NO_CHILD_THREAD; request->component = "<" #_x ">"; request->module = ""; request->child_state = _x
-static void event_new_fd(rad_listen_t *this);
+static void event_new_fd(void *ctx);
/*
* We need mutexes around the event FD list *only* in certain
}
#endif /* WITH_PROXY */
-static void event_new_fd(rad_listen_t *this)
+static void event_new_fd(void *ctx)
{
+ rad_listen_t *this = talloc_get_type_abort(ctx, rad_listen_t);
char buffer[1024];
listen_socket_t *sock = NULL;