From: Alan T. DeKok Date: Thu, 16 Sep 2021 00:27:40 +0000 (-0400) Subject: updates are "const" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6dc0251a3b10aa0dc75337a55e0d7a38783989f;p=thirdparty%2Ffreeradius-server.git updates are "const" --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index 2844ee7757..ed8f87b2c5 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -972,7 +972,7 @@ int _fr_event_fd_move(NDEBUG_LOCATION_ARGS * the callback function. */ int _fr_event_filter_update(NDEBUG_LOCATION_ARGS - fr_event_list_t *el, int fd, fr_event_filter_t filter, fr_event_update_t updates[]) + fr_event_list_t *el, int fd, fr_event_filter_t filter, fr_event_update_t const updates[]) { fr_event_fd_t *ef; size_t i; diff --git a/src/lib/util/event.h b/src/lib/util/event.h index fcf2d960c7..640dac42ff 100644 --- a/src/lib/util/event.h +++ b/src/lib/util/event.h @@ -215,7 +215,7 @@ int _fr_event_filter_insert(NDEBUG_LOCATION_ARGS int _fr_event_filter_update(NDEBUG_LOCATION_ARGS fr_event_list_t *el, int fd, fr_event_filter_t filter, - fr_event_update_t updates[]); + fr_event_update_t const updates[]); #define fr_event_filter_update(...) _fr_event_filter_update(NDEBUG_LOCATION_EXP __VA_ARGS__) int _fr_event_fd_insert(NDEBUG_LOCATION_ARGS