Skip to content
Snippets Groups Projects
Commit f8afcf1e authored by Daniel Salzman's avatar Daniel Salzman
Browse files

events: remove const qualifier if the variable is changed

parent 9d456cf1
Branches
Tags
No related merge requests found
...@@ -398,7 +398,7 @@ time_t zone_events_get_next(const struct zone_t *zone, zone_event_type_t *type) ...@@ -398,7 +398,7 @@ time_t zone_events_get_next(const struct zone_t *zone, zone_event_type_t *type)
return next_time; return next_time;
} }
void zone_events_update(zone_t *zone, const zone_t *old_zone) void zone_events_update(zone_t *zone, zone_t *old_zone)
{ {
replan_events(zone, old_zone); replan_events(zone, old_zone);
} }
......
...@@ -176,7 +176,7 @@ time_t zone_events_get_next(const struct zone_t *zone, zone_event_type_t *type); ...@@ -176,7 +176,7 @@ time_t zone_events_get_next(const struct zone_t *zone, zone_event_type_t *type);
* \param zone Zone with new config. * \param zone Zone with new config.
* \param old_zone Zone with old config. * \param old_zone Zone with old config.
*/ */
void zone_events_update(struct zone_t *zone, const struct zone_t *old_zone); void zone_events_update(struct zone_t *zone, struct zone_t *old_zone);
/*! /*!
* \brief Replans DDNS processing event if DDNS queue is not empty. * \brief Replans DDNS processing event if DDNS queue is not empty.
......
...@@ -114,11 +114,11 @@ static void replan_dnssec(zone_t *zone) ...@@ -114,11 +114,11 @@ static void replan_dnssec(zone_t *zone)
} }
/*!< Replans DDNS event. */ /*!< Replans DDNS event. */
void replan_update(zone_t *zone, const zone_t *old_zone) void replan_update(zone_t *zone, zone_t *old_zone)
{ {
const bool have_updates = old_zone->ddns_queue_size > 0; const bool have_updates = old_zone->ddns_queue_size > 0;
if (have_updates) { if (have_updates) {
duplicate_ddns_q(zone, (zone_t *)old_zone); duplicate_ddns_q(zone, old_zone);
} }
if (have_updates) { if (have_updates) {
...@@ -126,12 +126,12 @@ void replan_update(zone_t *zone, const zone_t *old_zone) ...@@ -126,12 +126,12 @@ void replan_update(zone_t *zone, const zone_t *old_zone)
} }
} }
void replan_events(zone_t *zone, const zone_t *old_zone) void replan_events(zone_t *zone, zone_t *old_zone)
{ {
replan_soa_events(zone, old_zone); replan_soa_events(zone, old_zone);
replan_xfer(zone, old_zone); replan_xfer(zone, old_zone);
replan_flush(zone, old_zone); replan_flush(zone, old_zone);
replan_event(zone, old_zone, ZONE_EVENT_NOTIFY); replan_event(zone, old_zone, ZONE_EVENT_NOTIFY);
replan_update(zone, (zone_t *)old_zone); replan_update(zone, old_zone);
replan_dnssec(zone); replan_dnssec(zone);
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "knot/zone/zone.h" #include "knot/zone/zone.h"
/*! \brief Replans zone's events using old zone. */ /*! \brief Replans zone's events using old zone. */
void replan_events(zone_t *zone, const zone_t *old_zone); void replan_events(zone_t *zone, zone_t *old_zone);
/*! \brief Replans zone's DDNS events using old zone's DDNS queue. */ /*! \brief Replans zone's DDNS events using old zone's DDNS queue. */
void replan_update(zone_t *zone, const zone_t *old_zone); void replan_update(zone_t *zone, zone_t *old_zone);
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