diff options
author | peter <peter@FreeBSD.org> | 2000-07-28 22:17:42 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-07-28 22:17:42 +0000 |
commit | 40fc2e8bd3ef88c6aa47e72dc8bd6cab6c16dc72 (patch) | |
tree | 39cd10cad91e5da4710e2bca520ad932f3505522 /sys/kern | |
parent | 441c016268f3d71b90aec79b082ed2ad88f0deae (diff) | |
download | FreeBSD-src-40fc2e8bd3ef88c6aa47e72dc8bd6cab6c16dc72.zip FreeBSD-src-40fc2e8bd3ef88c6aa47e72dc8bd6cab6c16dc72.tar.gz |
Fix a warning that has been annoying me for some time:
"kern/sys_generic.c:358: warning: cast discards qualifiers from pointer
target type"
The idea for using the uintptr_t intermediate cast for de-constifying
a pointer was hinted at by bde some time ago.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sys_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index b6ef0a1..8893063 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -355,7 +355,7 @@ dofilewrite(p, fp, fd, buf, nbyte, offset, flags) int didktr = 0; #endif - aiov.iov_base = (void *)buf; + aiov.iov_base = (void *)(uintptr_t)buf; aiov.iov_len = nbyte; auio.uio_iov = &aiov; auio.uio_iovcnt = 1; |