From: Alan T. DeKok Date: Wed, 18 Aug 2021 14:42:45 +0000 (-0400) Subject: cast function pointers to void* X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=863d7123f26bc2a9fe4959b70e960f579de9a6a9;p=thirdparty%2Ffreeradius-server.git cast function pointers to void* because we're using them as placeholders. We don't actually care what they are --- diff --git a/src/lib/util/machine.c b/src/lib/util/machine.c index 4d929359187..64bd9c17908 100644 --- a/src/lib/util/machine.c +++ b/src/lib/util/machine.c @@ -134,7 +134,7 @@ static int _machine_free(fr_machine_t *m) /* * Exit the current state, and enter the free state. */ - state_transition(m, m->def->free, _machine_free); + state_transition(m, m->def->free, (void *) _machine_free); /* * Don't call "process" on the free state. Simply @@ -362,7 +362,7 @@ int fr_machine_transition(fr_machine_t *m, int state) * We're allowed to do the transition now, so exit the * current state, and enter the new one. */ - state_transition(m, state, fr_machine_transition); + state_transition(m, state, (void *) fr_machine_transition); return 0; } @@ -500,5 +500,5 @@ void fr_machine_resume(fr_machine_t *m) state = m->deferred; m->deferred = 0; - state_transition(m, state, fr_machine_resume); + state_transition(m, state, (void *) fr_machine_resume); }