summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-03-17 18:13:32 +0000
committerjeff <jeff@FreeBSD.org>2007-03-17 18:13:32 +0000
commit82143f95ad1b41e027bececf613c3e94f1556ac6 (patch)
tree1d35f7b518c30faa72f63d65c95381280adaf88d /sys/nfsserver
parent1008dd40e3ccaea2037b43cebc74eb7310fccdd6 (diff)
downloadFreeBSD-src-82143f95ad1b41e027bececf613c3e94f1556ac6.zip
FreeBSD-src-82143f95ad1b41e027bececf613c3e94f1556ac6.tar.gz
- Cast the intermediate value in priority computtion back down to
unsigned char. Weirdly, casting the 1 constant to u_char still produces a signed integer result that is then used in the % computation. This avoids that mess all together and causes a 0 pri to turn into 255 % 64 as we expect. Reported by: kkenn (about 4 times, thanks)
Diffstat (limited to 'sys/nfsserver')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud