[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Marc Espie <espie_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Sat, 20 Nov 1999 11:52:01 -0700 (MST)
- Reply-to: Marc Espie <espie_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
CVSROOT: /cvs
Module name: src
Changes by: espie_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 1999/11/20 11:52:01
Modified files:
sys/dev : audio.c
sys/net : if.c
sys/dev/pci : brooktree848.c
sys/arch/i386/i386: pctr.c
sys/arch/i386/isa/pcvt: pcvt_drv.c pcvt_ext.c pcvt_hdr.h
pcvt_kbd.c pcvt_sup.c
sys/compat/ossaudio: ossaudiovar.h
sys/compat/ibcs2: ibcs2_syscallargs.h
Log message:
ioctl arguments are u_long.
Replaces `undefined' code with `defined' behavior...
gcc 2.96 performs switch cases range analysis, warns about unreachable
cases, and weeds them out.
In
switch(i) {
case VALUE:
}
VALUE is first coerced into the type of i. If i is signed, VALUE is
unsigned and exceeds i range, you lose... the result of the conversion
is undefined.
Visit your host, monkey.org