From 6dc9d363f149eebe9fd5a0c7c7e9761e09cca9c5 Mon Sep 17 00:00:00 2001 From: gotmor Date: Wed, 13 Jun 2007 15:41:38 +0000 Subject: warnings git-svn-id: http://dzen.googlecode.com/svn/trunk@88 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index 9fb400e..a8f3f70 100644 --- a/action.c +++ b/action.c @@ -91,7 +91,7 @@ add_handler(long evid, int hpos, void * hcb) { while(item) { if(item->id == evid) { item->action[hpos] = emalloc(sizeof(As)); - item->action[hpos]->handler = hcb; + item->action[hpos]->handler = (handlerf) hcb; break; } item = item->next; @@ -164,15 +164,15 @@ get_ev_id(char *evname) { return -1; } -void * +handlerf get_action_handler(char *acname) { int i; for(i=0; ac_lookup_table[i].name; i++) { if(strcmp(ac_lookup_table[i].name, acname) == 0) - return ac_lookup_table[i].handler; + return (handlerf) ac_lookup_table[i].handler; } - return (void *)NULL; + return (handlerf)NULL; } -- cgit v1.2.3-54-g00ecf