summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-05-09 12:14:18 +0000
committerbde <bde@FreeBSD.org>1998-05-09 12:14:18 +0000
commit31cc4a2fce40a72d0f8b70e5aa2a4ee28ffb6862 (patch)
treeaaee6431840839ddf2f583ac66c445a2af061c50 /usr.sbin
parent966bd989707d6877ddcd5015a4263608ecbc4aa7 (diff)
downloadFreeBSD-src-31cc4a2fce40a72d0f8b70e5aa2a4ee28ffb6862.zip
FreeBSD-src-31cc4a2fce40a72d0f8b70e5aa2a4ee28ffb6862.tar.gz
Fixed overflow in sysinit enum constants. In that little-used
language, ANSI C, enum constants must be representable as ints. We assumed at-least-33-bit ints. This worked on some 32-bit systems because we don't mix negative sysinit enum constants with too-large sysinit enum constants, and the compiler used an unsigned 32-bit type for sysinit enum variables, so sysinit enum variables were sorted correctly. The fix lops off 4 hopefully-unused bits so that we now only assume at-least-29-bit ints.
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud