diff options
author | Gary Wong <gtw@gnu.org> | 2009-09-01 22:35:00 -0600 |
---|---|---|
committer | Gary Wong <gtw@gnu.org> | 2009-09-01 22:35:00 -0600 |
commit | 472c13261930f1a1803abd2aa24a137a66fc0a42 (patch) | |
tree | 73f84bfcaaa736f4687a90120111f2faab2ccf64 | |
parent | 38546109c98e98b933a6e3a8e29572e29e16c1b1 (diff) |
Declare read-only data structres as const.
-rw-r--r-- | menu.c | 2 | ||||
-rw-r--r-- | menu.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 */ @@ -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 |