aboutsummaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-13 15:21:11 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-13 15:21:11 +0000
commit7da191e7673d26b2b1573546a81a2594b0a57774 (patch)
treed32a0ef2e6949f4e7f9cb4ba5387aab8164ff79a /action.c
parent0fdc56aba62c8b68c7567375ea87e06a44fe8da4 (diff)
downloaddzen-7da191e7673d26b2b1573546a81a2594b0a57774.tar.gz
dzen-7da191e7673d26b2b1573546a81a2594b0a57774.zip
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
Diffstat (limited to 'action.c')
-rw-r--r--action.c6
1 files changed, 3 insertions, 3 deletions
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++;
}
}