]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix arg order
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Dec 2022 23:24:49 +0000 (17:24 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 10 Dec 2022 23:24:49 +0000 (17:24 -0600)
src/lib/util/event.c

index 1a695acb6ff1290c90ae05611c775394fe76b4fa..26a7cbb3f8a1cb5087c0c7b2ac9cc9a12b59031d 100644 (file)
@@ -1821,7 +1821,7 @@ int _fr_event_pid_wait(NDEBUG_LOCATION_ARGS
                                 *      because they were not yet yielded, 
                                 *      leading to hangs.
                                 */
-                               if (fr_event_user_insert(ev, &ev->early_exit.ev, el, true, _fr_event_pid_early_exit, ev) < 0) {
+                               if (fr_event_user_insert(ev, el, &ev->early_exit.ev, true, _fr_event_pid_early_exit, ev) < 0) {
                                        fr_strerror_printf_push("Failed adding wait for PID %ld, and failed adding "
                                                                "backup user event", (long) pid);
                                error:
@@ -2123,8 +2123,8 @@ void event_user_eval(fr_event_list_t *el, struct kevent *kev)
 /** Add a user callback to the event list.
  *
  * @param[in] ctx      to allocate the event in.
- * @param[out] ev_p    Where to write a pointer.
  * @param[in] el       Containing the timer events.
+ * @param[out] ev_p    Where to write a pointer.
  * @param[in] trigger  Whether the user event is triggered initially.
  * @param[in] callback for EVFILT_USER.
  * @param[in] uctx     for the callback.
@@ -2133,8 +2133,7 @@ void event_user_eval(fr_event_list_t *el, struct kevent *kev)
  *     - -1 on error.
  */
 int _fr_event_user_insert(NDEBUG_LOCATION_ARGS 
-                         TALLOC_CTX *ctx, fr_event_user_t **ev_p,
-                         fr_event_list_t *el,
+                         TALLOC_CTX *ctx, fr_event_list_t *el, fr_event_user_t **ev_p,
                          bool trigger, fr_event_user_cb_t callback, void *uctx)
 {
        fr_event_user_t *ev;