diff options
author | benno <benno@FreeBSD.org> | 2002-05-27 10:50:47 +0000 |
---|---|---|
committer | benno <benno@FreeBSD.org> | 2002-05-27 10:50:47 +0000 |
commit | 496e86d41ba5afd08129c74e2d3c6aa0163133dd (patch) | |
tree | 82333b59f9b73d13c74f196f78e18ebcfd2f7b88 | |
parent | afc38d0730cc1ba87365292cf6507420b200ea4e (diff) | |
download | FreeBSD-src-496e86d41ba5afd08129c74e2d3c6aa0163133dd.zip FreeBSD-src-496e86d41ba5afd08129c74e2d3c6aa0163133dd.tar.gz |
Use correct types in [sf]uword32.
-rw-r--r-- | sys/powerpc/aim/copyinout.c | 8 | ||||
-rw-r--r-- | sys/powerpc/powerpc/copyinout.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c index 70789ac..37e7de7 100644 --- a/sys/powerpc/aim/copyinout.c +++ b/sys/powerpc/aim/copyinout.c @@ -265,9 +265,9 @@ suword(void *addr, long word) } int -suword32(void *addr, u_int32_t word) +suword32(void *addr, int32_t word) { - return (suword(addr, word)); + return (suword(addr, (long)word)); } @@ -322,8 +322,8 @@ fuword(const void *addr) return (val); } -u_int32_t +int32_t fuword32(const void *addr) { - return (fuword(addr)); + return ((int32_t)fuword(addr)); } diff --git a/sys/powerpc/powerpc/copyinout.c b/sys/powerpc/powerpc/copyinout.c index 70789ac..37e7de7 100644 --- a/sys/powerpc/powerpc/copyinout.c +++ b/sys/powerpc/powerpc/copyinout.c @@ -265,9 +265,9 @@ suword(void *addr, long word) } int -suword32(void *addr, u_int32_t word) +suword32(void *addr, int32_t word) { - return (suword(addr, word)); + return (suword(addr, (long)word)); } @@ -322,8 +322,8 @@ fuword(const void *addr) return (val); } -u_int32_t +int32_t fuword32(const void *addr) { - return (fuword(addr)); + return ((int32_t)fuword(addr)); } |