diff options
author | 2014-10-05 11:32:43 +0000 | |
---|---|---|
committer | 2014-10-05 11:32:43 +0000 | |
commit | e9f0d5aa02b8525e0a629699e7be90249e51d1dc (patch) | |
tree | 6a1d84d88a117f84eab3cdd9fb2316df29e9128e | |
parent | ansify function definitions. (diff) | |
download | wireguard-openbsd-e9f0d5aa02b8525e0a629699e7be90249e51d1dc.tar.xz wireguard-openbsd-e9f0d5aa02b8525e0a629699e7be90249e51d1dc.zip |
dont need to cast pointers to/from void *
no binary change
-rw-r--r-- | sys/arch/sparc64/sparc64/intr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/intr.c b/sys/arch/sparc64/sparc64/intr.c index f5161997d5b..d1ce89d33f5 100644 --- a/sys/arch/sparc64/sparc64/intr.c +++ b/sys/arch/sparc64/sparc64/intr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.c,v 1.50 2014/10/05 11:30:33 dlg Exp $ */ +/* $OpenBSD: intr.c,v 1.51 2014/10/05 11:32:43 dlg Exp $ */ /* $NetBSD: intr.c,v 1.39 2001/07/19 23:38:11 eeh Exp $ */ /* @@ -327,7 +327,7 @@ softintr_establish(int level, void (*fun)(void *), void *arg) ih->ih_pending = 0; ih->ih_ack = NULL; ih->ih_clr = NULL; - return (void *)ih; + return (ih); } void @@ -339,7 +339,7 @@ softintr_disestablish(void *cookie) void softintr_schedule(void *cookie) { - struct intrhand *ih = (struct intrhand *)cookie; + struct intrhand *ih = cookie; send_softint(-1, ih->ih_pil, ih); } |