Commit a68c6d2a authored by Jan Včelák's avatar Jan Včelák 🚀

server: remove void pointer parameter

parent 419c7ab8
......@@ -621,9 +621,8 @@ static int reconfigure_rate_limits(conf_t *conf, server_t *server)
return KNOT_EOK;
}
int server_reconfigure(conf_t *conf, void *data)
int server_reconfigure(conf_t *conf, server_t *server)
{
server_t *server = (server_t *)data;
if (server == NULL) {
return KNOT_EINVAL;
}
......
......@@ -180,7 +180,7 @@ void server_stop(server_t *server);
* \retval KNOT_EINVAL on invalid parameters.
* \retval KNOT_ERROR unspecified error.
*/
int server_reconfigure(conf_t *conf, void *data);
int server_reconfigure(conf_t *conf, server_t *data);
/*!
* \brief Reconfigure zone database.
......
......@@ -23,10 +23,10 @@
extern void udp_master_init_stdio(server_t *server);
int server_reconfigure(conf_t *conf, void *data)
int server_reconfigure(conf_t *conf, server_t *server)
{
log_info("AFL, Wrap server_reconfigure()");
int ret = _orig_server_reconfigure(conf, data);
udp_master_init_stdio(data);
int ret = _orig_server_reconfigure(conf, server);
udp_master_init_stdio(server);
return ret;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment