diff options
author | tijl <tijl@FreeBSD.org> | 2015-04-30 16:08:47 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2015-04-30 16:08:47 +0000 |
commit | b709ec868adb5170d09bc5a66b18d0e0d5987ab6 (patch) | |
tree | c67e00b5fe571ffc8b53045db12739794a0aa566 /contrib/smbfs/lib/smb/rq.c | |
parent | de0424ce2628044461b3970c30ea52cd23d4a937 (diff) | |
download | FreeBSD-src-b709ec868adb5170d09bc5a66b18d0e0d5987ab6.zip FreeBSD-src-b709ec868adb5170d09bc5a66b18d0e0d5987ab6.tar.gz |
MFC r275805:
Fix incorrect type of "invalids" argument in __iconv() prototype.
MFC r281550,281591:
Remove the const qualifier from iconv(3) to comply with POSIX:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
Adjust all code that calls iconv.
PR: 199099
Diffstat (limited to 'contrib/smbfs/lib/smb/rq.c')
-rw-r--r-- | contrib/smbfs/lib/smb/rq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/smbfs/lib/smb/rq.c b/contrib/smbfs/lib/smb/rq.c index 7ecbb36..7dda4792 100644 --- a/contrib/smbfs/lib/smb/rq.c +++ b/contrib/smbfs/lib/smb/rq.c @@ -86,7 +86,7 @@ smb_rq_wend(struct smb_rq *rqp) } int -smb_rq_dmem(struct mbdata *mbp, const char *src, size_t size) +smb_rq_dmem(struct mbdata *mbp, char *src, size_t size) { struct mbuf *m; char * dst; @@ -118,7 +118,7 @@ smb_rq_dmem(struct mbdata *mbp, const char *src, size_t size) } int -smb_rq_dstring(struct mbdata *mbp, const char *s) +smb_rq_dstring(struct mbdata *mbp, char *s) { return smb_rq_dmem(mbp, s, strlen(s) + 1); } |