cvs commit: src/usr.sbin/apm Makefile apm.c
Nate Lawson
njl at FreeBSD.org
Thu May 27 12:24:28 PDT 2004
njl 2004/05/27 12:23:27 PDT
FreeBSD src repository
Modified files:
usr.sbin/apm Makefile apm.c
Log:
Check for >= 255 since sign extension from byte to u_int sometimes makes
the value for "unknown" 0xffffffff. The underlying kernel drivers should
be updated to only return 255 but the ABI is used by too many userland
utilities.
Also, make this WARNS 6 compatible.
Revision Changes Path
1.17 +1 -0 src/usr.sbin/apm/Makefile
1.32 +39 -43 src/usr.sbin/apm/apm.c
More information about the cvs-src
mailing list