summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_cx.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-20 15:25:33 +0000
committerbde <bde@FreeBSD.org>1997-04-20 15:25:33 +0000
commite34af1091c2a425d01698055f7065e5e0d61abec (patch)
treec0265c3e86f8473c6fa41c7f729b738347d1fd8e /sys/i386/isa/if_cx.c
parentf5e7e31898a53ecf946215bf9227395a9da8130b (diff)
downloadFreeBSD-src-e34af1091c2a425d01698055f7065e5e0d61abec.zip
FreeBSD-src-e34af1091c2a425d01698055f7065e5e0d61abec.tar.gz
Fixed inconsistent extern declaration of a timeout function and
removed a cast that helped hide the problem. There was no problem in practice (at least on 386's).
Diffstat (limited to 'sys/i386/isa/if_cx.c')
-rw-r--r--sys/i386/isa/if_cx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index 991d290..d57480b 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -86,7 +86,7 @@ static void cxinput (cx_chan_t *c, void *buf, unsigned len);
extern int cxrinta (cx_chan_t *c);
extern void cxtinta (cx_chan_t *c);
extern void cxmint (cx_chan_t *c);
-extern void cxtimeout (caddr_t a);
+extern timeout_t cxtimeout;
static void cxdown (cx_chan_t *c);
static void cxup (cx_chan_t *c);
@@ -288,7 +288,7 @@ cxattach (struct isa_device *id)
/* Activate the timeout routine. */
if (unit == 0)
- timeout ((timeout_func_t) cxtimeout, 0, hz*5);
+ timeout (cxtimeout, 0, hz*5);
printf ("cx%d: <Cronyx-%s>\n", unit, b->name);
#ifdef DEVFS
OpenPOWER on IntegriCloud