Index: src/event.c =================================================================== --- src/event.c (revision 1279) +++ src/event.c (revision 1280) @@ -9,7 +9,7 @@ struct event_s { event_handler_t *handler; void *user_data; - void *cookie; + const char *cookie; event_t *next; }; @@ -56,7 +56,7 @@ } } -void event_unbind_cookie(event_id_t ev, void *cookie) +void event_unbind_cookie(event_id_t ev, const char *cookie) { event_t *prev = NULL, *e, *next; if (!(event_valid(ev))) @@ -74,7 +74,7 @@ } -void event_unbind_allcookie(void *cookie) +void event_unbind_allcookie(const char *cookie) { event_id_t n; for (n = 0; n < EVENT_last; n++) Index: src/event.h =================================================================== --- src/event.h (revision 1279) +++ src/event.h (revision 1280) @@ -45,10 +45,10 @@ void event_unbind(event_id_t ev, event_handler_t * handler); /* Unbind by cookie: remove all handlers from an event matching the cookie */ -void event_unbind_cookie(event_id_t ev, void *cookie); +void event_unbind_cookie(event_id_t ev, const char *cookie); /* Unbind all by cookie: remove all handlers from all events matching the cookie */ -void event_unbind_allcookie(void *cookie); +void event_unbind_allcookie(const char *cookie); /* Event trigger: call all handlers for an event. Fmt is a list of format characters (e.g. i for ARG_INT). */