]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct function signature for event_new_fd()
authorNick Porter <nick@portercomputing.co.uk>
Fri, 24 Jan 2025 09:33:06 +0000 (09:33 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 24 Jan 2025 09:42:40 +0000 (09:42 +0000)
It is used as an event callback, so needs to have the
fr_event_callback_t signature.

src/main/process.c

index 8e77b74f639d6a7ab5c75caa42fdab301aab696f..9753792f95f5f10f870ef03e03bbf51293a0a0a5 100644 (file)
@@ -312,7 +312,7 @@ static bool we_are_master(void)
 #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
@@ -5570,8 +5570,9 @@ static int proxy_eol_cb(void *ctx, void *data)
 }
 #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;