]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
if we can assign to it, it's not const
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Sep 2017 00:28:50 +0000 (20:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Sep 2017 00:28:50 +0000 (20:28 -0400)
src/lib/io/application.h
src/modules/proto_radius/proto_radius_udp.c

index 00dd80dd32b059e80ed4aa6e8bbb59274c0688d2..4d86c2ac15309a7ae4a2c44e857dec74d3e05d0f 100644 (file)
@@ -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)
  *
index cb1e49caa2346dafbe158394bdb03d1fb52b9c22..211990009f3d713407f54f4a1f60b344ce63e121 100644 (file)
@@ -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 */