From owner-cvs-sys Sun Apr 20 09:38:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA29738 for cvs-sys-outgoing; Sun, 20 Apr 1997 09:38:33 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA29731; Sun, 20 Apr 1997 09:38:28 -0700 (PDT) Date: Sun, 20 Apr 1997 09:38:28 -0700 (PDT) From: Bruce Evans Message-Id: <199704201638.JAA29731@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/isa/pcvt pcvt_drv.c pcvt_hdr.h pcvt_kbd.c pcvt_sup.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/04/20 09:38:27 Modified: sys/i386/isa/pcvt pcvt_drv.c pcvt_hdr.h pcvt_kbd.c pcvt_sup.c Log: 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. Revision Changes Path 1.31 +3 -2 src/sys/i386/isa/pcvt/pcvt_drv.c 1.25 +4 -12 src/sys/i386/isa/pcvt/pcvt_hdr.h 1.18 +2 -2 src/sys/i386/isa/pcvt/pcvt_kbd.c 1.7 +15 -17 src/sys/i386/isa/pcvt/pcvt_sup.c