diff options
author | bde <bde@FreeBSD.org> | 1999-01-29 08:10:35 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-01-29 08:10:35 +0000 |
commit | 82b636d3e35bfca1711cdd6c6d1e098b6ad99fea (patch) | |
tree | b26607bf59e059320221d31d83fb10b965b7fda5 /sys/kern/link_elf.c | |
parent | 85d7bb85d5c7a47f4ed480fb27b3cb82ab455556 (diff) | |
download | FreeBSD-src-82b636d3e35bfca1711cdd6c6d1e098b6ad99fea.zip FreeBSD-src-82b636d3e35bfca1711cdd6c6d1e098b6ad99fea.tar.gz |
Removed a bogus cast to c_caddr_t. This is part of terminating
c_caddr_t with extreme prejudice. Here the point of the original
cast to caddr_t was to break the warning about the const mismatch
between write(2)'s `const void *buf' and `struct uio's `char
*iov_base' (previous bitrot gave a gratuitous dependency on caddr_t
being char *). Compiling with -Wcast-qual made the cast a full
no-op.
This change has no effect on the warning for discarding `const'
on assignment to iov_base. The warning should not be fixed by
splitting `struct iovec' into a non-const version for read()
and a const version for write(), since correct const poisoning
would affect all pointers to i/o addresses. Const'ness should
probably be forgotten by not declaring it in syscalls.master.
Diffstat (limited to 'sys/kern/link_elf.c')
0 files changed, 0 insertions, 0 deletions