summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2009-09-01 22:35:00 -0600
committerGary Wong <gtw@gnu.org>2009-09-01 22:35:00 -0600
commit472c13261930f1a1803abd2aa24a137a66fc0a42 (patch)
tree73f84bfcaaa736f4687a90120111f2faab2ccf64
parent38546109c98e98b933a6e3a8e29572e29e16c1b1 (diff)
Declare read-only data structres as const.
-rw-r--r--menu.c2
-rw-r--r--menu.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 6b1e573..36d0613 100644
--- a/menu.c
+++ b/menu.c
@@ -249,7 +249,7 @@ extern void popup_menu( struct gwm_window *window, xcb_generic_event_t *ev,
pointer_demux = menu->w;
}
-event_handler menu_handlers[] = {
+const event_handler menu_handlers[] = {
NULL, /* Error */
NULL, /* Reply */
NULL, /* KeyPress */
diff --git a/menu.h b/menu.h
index 0857a9e..7961e08 100644
--- a/menu.h
+++ b/menu.h
@@ -10,6 +10,6 @@ struct menuitem {
extern void popup_menu( struct gwm_window *window, xcb_generic_event_t *ev,
int num_items, const struct menuitem *items );
-extern event_handler menu_handlers[], menuitem_handlers[];
+extern const event_handler menu_handlers[], menuitem_handlers[];
#endif