From 01123bae075d6d472eaf3806556ce08ca6d6a3cd Mon Sep 17 00:00:00 2001 From: gotmor Date: Mon, 18 Jun 2007 00:04:30 +0000 Subject: code cleanups, thanks 'mauke' git-svn-id: http://dzen.googlecode.com/svn/trunk@106 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'action.h') diff --git a/action.h b/action.h index c446340..65f4b17 100644 --- a/action.h +++ b/action.h @@ -10,7 +10,7 @@ /* Event, Action data structures */ typedef struct AS As; typedef struct _ev_list ev_list; -typedef int (* handlerf)(char **); +typedef int handlerf(char **); enum ev_id { /* startup, exit */ @@ -34,12 +34,12 @@ struct _ev_list { }; struct event_lookup { - char *name; + const char *name; long id; }; struct action_lookup { - char *name; + const char *name; int (*handler)(char **); }; @@ -51,8 +51,8 @@ struct AS { /* utility functions */ void do_action(long); -int get_ev_id(char *); -handlerf get_action_handler(char *); +int get_ev_id(const char *); +handlerf *get_action_handler(const char *); void fill_ev_table(char *); void free_event_list(void); int find_event(long); -- cgit v1.2.3-54-g00ecf