summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-16 00:41:40 +0000
committerbde <bde@FreeBSD.org>1998-08-16 00:41:40 +0000
commit9fa8a2d79412b133fbecb03e9fd619c95770f665 (patch)
tree1c5ca30276ee0bed24493ee6bdf7a165c9db1679 /sys/compat/linux/linux_misc.c
parent8814b380eb06aeefb7ad5557e2cbb58aafb4c057 (diff)
downloadFreeBSD-src-9fa8a2d79412b133fbecb03e9fd619c95770f665.zip
FreeBSD-src-9fa8a2d79412b133fbecb03e9fd619c95770f665.tar.gz
pmap.c:
Cast pointers to (vm_offset_t) instead of to (u_long) (as before) or to (uintptr_t)(void *) (as would be more correct). Don't cast vm_offset_t's to (u_long) just to do arithmetic on them. mp_machdep.c: Cast pointers to (uintptr_t) instead of to (u_long). Don't forget to cast pointers to (void *) first or to recover from integral possible integral promotions, although this is too much work for machine-dependent code. vm code generally avoids warnings for pointer vs long size mismatches by using vm_offset_t to represent pointers; pmap.c often uses plain `unsigned int' instead of vm_offset_t and didn't use u_long elsewhere, but this style was messed up by code apparently imported from mp_machdep.c.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud