From 6f6c6767768e19a4547e98f533382ba40592705a Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 12 Jan 2018 02:15:33 +0200 Subject: [PATCH] (mc_event_mass_add): make events const. Signed-off-by: Andrew V. Samoilov --- lib/event.h | 2 +- lib/event/event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/event.h b/lib/event.h index a347bb093..df6d857db 100644 --- a/lib/event.h +++ b/lib/event.h @@ -34,7 +34,7 @@ void mc_event_del (const gchar *, const gchar *, mc_event_callback_func_t, gpoin void mc_event_destroy (const gchar *, const gchar *); void mc_event_group_del (const gchar *); gboolean mc_event_present (const gchar *, const gchar *); -gboolean mc_event_mass_add (event_init_t *, GError **); +gboolean mc_event_mass_add (const event_init_t *, GError **); /* raise.c: */ gboolean mc_event_raise (const gchar *, const gchar *, gpointer); diff --git a/lib/event/event.c b/lib/event/event.c index 2faf03751..8c5a6596e 100644 --- a/lib/event/event.c +++ b/lib/event/event.c @@ -92,7 +92,7 @@ mc_event_deinit (GError ** mcerror) /* --------------------------------------------------------------------------------------------- */ gboolean -mc_event_mass_add (event_init_t * events, GError ** mcerror) +mc_event_mass_add (const event_init_t * events, GError ** mcerror) { size_t array_index;