From: Herwin Weststrate Date: Sun, 27 Nov 2016 13:57:26 +0000 (+0100) Subject: Fix build issues with sd_watchdog_event X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1770fc5a69a60be6b439fffc01ded86e900f2ced;p=thirdparty%2Ffreeradius-server.git Fix build issues with sd_watchdog_event Probably not the best fix around, but at least it fixes the build process --- diff --git a/src/main/process.c b/src/main/process.c index 032d2520235..583d8f36cbb 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -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;