]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use correct order for event status
authorAlan T. DeKok <aland@freeradius.org>
Mon, 19 Dec 2016 21:35:55 +0000 (16:35 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 19 Dec 2016 21:35:55 +0000 (16:35 -0500)
src/main/radsniff.c

index 6b413ce0638019c035fb7bc09e464fb34d394020..751e80a184ae2b3a5226e1faf2d2244601424ce4 100644 (file)
@@ -1840,7 +1840,7 @@ static void rs_got_packet(fr_event_list_t *el, int fd, void *ctx)
        }
 }
 
-static int  _rs_event_status(struct timeval *wake, UNUSED void *ctx)
+static int  _rs_event_status(UNUSED void *ctx, struct timeval *wake)
 {
        if (wake && ((wake->tv_sec != 0) || (wake->tv_usec >= 100000))) {
                DEBUG2("Waking up in %d.%01u seconds.", (int) wake->tv_sec, (unsigned int) wake->tv_usec / 100000);