From: Alan T. DeKok Date: Fri, 8 Sep 2017 00:28:50 +0000 (-0400) Subject: if we can assign to it, it's not const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59bd5656a052fcf427113acf4804ea30b9f6815b;p=thirdparty%2Ffreeradius-server.git if we can assign to it, it's not const --- diff --git a/src/lib/io/application.h b/src/lib/io/application.h index 00dd80dd32b..4d86c2ac153 100644 --- a/src/lib/io/application.h +++ b/src/lib/io/application.h @@ -47,7 +47,7 @@ typedef void (*fr_app_process_set_t)(void const *instance, REQUEST *request); /** Called by the network thread to pass an event list for the module to use for timer events */ -typedef void (*fr_app_event_list_set_t)(void const *instance, fr_event_list_t *el); +typedef void (*fr_app_event_list_set_t)(void *instance, fr_event_list_t *el); /** Describes a new application (protocol) * diff --git a/src/modules/proto_radius/proto_radius_udp.c b/src/modules/proto_radius/proto_radius_udp.c index cb1e49caa23..211990009f3 100644 --- a/src/modules/proto_radius/proto_radius_udp.c +++ b/src/modules/proto_radius/proto_radius_udp.c @@ -476,9 +476,9 @@ static int mod_fd(void const *instance) * @param[in] instance of the RADIUS UDP I/O path. * @param[in] el the event list */ -static void mod_event_list_set(void const *instance, fr_event_list_t *el) +static void mod_event_list_set(void *instance, fr_event_list_t *el) { - proto_radius_udp_t const *inst; + proto_radius_udp_t *inst; memcpy(&inst, &instance, sizeof(inst)); /* const issues */