From 7da191e7673d26b2b1573546a81a2594b0a57774 Mon Sep 17 00:00:00 2001 From: gotmor Date: Wed, 13 Jun 2007 15:21:11 +0000 Subject: fixes to compile cleanly with -Wall and -DPOSIX_SOURCE changed config.mk, there were problems with solaris git-svn-id: http://dzen.googlecode.com/svn/trunk@87 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index 0b8c7d9..9fb400e 100644 --- a/action.c +++ b/action.c @@ -56,7 +56,7 @@ struct action_lookup ac_lookup_table[] = { ev_list *head = NULL; int -new_event(evid) { +new_event(long evid) { ev_list *item, *newitem; if(!head) { @@ -224,9 +224,9 @@ fill_ev_table(char *input) { break; } if(str4 == kommatoken && str4 != token && eid != -1) { - if((ah = (void *)get_action_handler(dptoken))) { + if((ah = (void *)get_action_handler(dptoken)) == NULL) { new_event(eid); - add_handler(eid, i, ah); + add_handler(eid, i, get_action_handler(dptoken)); i++; } } -- cgit v1.2.3-54-g00ecf