]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
cast function pointers to void*
authorAlan T. DeKok <aland@freeradius.org>
Wed, 18 Aug 2021 14:42:45 +0000 (10:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 18 Aug 2021 15:02:38 +0000 (11:02 -0400)
because we're using them as placeholders.  We don't actually
care what they are

src/lib/util/machine.c

index 4d9293591872ac47ae60d71cfdf79bb3853e50b3..64bd9c1790896ed04204f8fca74f12d26595e017 100644 (file)
@@ -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);
 }