diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-19 11:22:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-19 11:22:42 -0700 |
commit | 870cecb72c2cba44dc64cb202917453603c8f287 (patch) | |
tree | e4ba7c59fba290504cfb055d71a74c0511ed9bb9 /XTrap | |
parent | a28652f9c35fbc009245382a5cc2a022f42366fc (diff) |
fix compiler warnings in XTrap/xtrapdiswp.c
Diffstat (limited to 'XTrap')
-rw-r--r-- | XTrap/xtrapdiswp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/XTrap/xtrapdiswp.c b/XTrap/xtrapdiswp.c index b0fa43957..dc2a3383a 100644 --- a/XTrap/xtrapdiswp.c +++ b/XTrap/xtrapdiswp.c @@ -374,13 +374,13 @@ void XETSwSendEvent(register xSendEventReq *data) { register char n; xEvent eventT; - void (*proc)(); + EventSwapPtr proc; swapl(&(data->destination), n); swapl(&(data->eventMask), n); /* Swap event */ proc = EventSwapVector[data->event.u.u.type & 0177]; - if (!proc || (int (*)()) proc == (int (*)()) NotImplemented) + if (!proc || proc == NotImplemented) (*proc)(&(data->event), &eventT); data->event = eventT; swaps(&(data->length), n); |