diff options
author | bde <bde@FreeBSD.org> | 1997-04-20 16:38:22 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-04-20 16:38:22 +0000 |
commit | 2d072e5f9d207912f63db40b062677c0507dbed5 (patch) | |
tree | 6d83d2dd376c810b976b23a5441a3003276ab4e3 /sys/i386/isa/pcvt/pcvt_kbd.c | |
parent | 8784b3f4e891adb70e9eeb6b8e2a04741912409d (diff) | |
download | FreeBSD-src-2d072e5f9d207912f63db40b062677c0507dbed5.zip FreeBSD-src-2d072e5f9d207912f63db40b062677c0507dbed5.tar.gz |
Fixed the type of timeout functions and removed casts that hid the
type mismatches. There was no problem in practice (at least on 386's).
Don't cast NULL in calls to timeout functions. pcvt is fully prototyped
and doesn't support K&R.
Timeout functions take args of type `void *', so use magic numbers of
type `void *' for UPDATE_* to reduce the danger of wrong conversions.
Removed FreeBSD-pre-1.1-related TIMEOUT_FUNC_T macro. It was especially
bogus for the pre-1.1 case.
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_kbd.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_kbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_kbd.c b/sys/i386/isa/pcvt/pcvt_kbd.c index e5c46df..4b15094 100644 --- a/sys/i386/isa/pcvt/pcvt_kbd.c +++ b/sys/i386/isa/pcvt/pcvt_kbd.c @@ -309,9 +309,9 @@ update_led(void) #if PCVT_UPDLED_LOSES_INTR if (lost_intr_timeout_queued) - untimeout (check_for_lost_intr, (void *)NULL); + untimeout(check_for_lost_intr, NULL); - timeout (check_for_lost_intr, (void *)NULL, hz); + timeout(check_for_lost_intr, NULL, hz); lost_intr_timeout_queued = 1; #endif /* PCVT_UPDLED_LOSES_INTR */ |