]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix build issues with sd_watchdog_event
authorHerwin Weststrate <herwin@snt.utwente.nl>
Sun, 27 Nov 2016 13:57:26 +0000 (14:57 +0100)
committerHerwin Weststrate <herwin@snt.utwente.nl>
Sun, 27 Nov 2016 13:57:26 +0000 (14:57 +0100)
Probably not the best fix around, but at least it fixes the build
process

src/main/process.c

index 032d25202355cdf13b82a5e2a35da532b5cd512e..583d8f36cbb9bfb842c36cd84b618f9ff24c43ee 100644 (file)
@@ -5041,7 +5041,7 @@ static int event_new_fd(rad_listen_t *this)
  *     Emit a systemd watchdog notification and reschedule the event.
  */
 #ifdef HAVE_SYSTEMD_WATCHDOG
-static void sd_watchdog_event(struct timeval *now, void *ctx)
+static void sd_watchdog_event(UNUSED struct timeval *now, void *ctx)
 {
        struct timeval when;
 
@@ -5188,7 +5188,7 @@ int radius_event_init(TALLOC_CTX *ctx) {
        if (!el) return 0;
 
 #ifdef HAVE_SYSTEMD_WATCHDOG
-       if ( (int) sd_watchdog_interval > 0 ) sd_watchdog_event(ctx);
+       if ( (int) sd_watchdog_interval > 0 ) sd_watchdog_event(NULL, ctx);
 #endif
 
        return 1;