HomeFreeBSD

Fixed a semantic error. va_arg(ap, u_short) is nonsense except on i386's

Description

Fixed a semantic error. va_arg(ap, u_short) is nonsense except on i386's
with 16-bit ints, since u_short is promoted when it is passed to a
varargs function. gcc now warns about this. We always pass small
integers (this is well obuscated), so there are no conversion problems.

Fixed a related style bug (bogus cast).

Details

Provenance
Bruce Evans <bde@FreeBSD.org>Authored on May 13 2002, 2:34 PM
Parents
rG5d81c9882f0d: Don't include <stddef.h> "For offsetof". This is not even wrong in
Branches
Unknown
Tags
Unknown

Event Timeline