diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-10-11 15:32:55 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-10-11 15:43:41 +0200 |
commit | bf8c54240338eb84fe48eaef7a34d3cb7e954dd5 (patch) | |
tree | f4e7eb892df690e0ea7db8921ef208eaff3e9fd6 /resolv/herror.c | |
parent | 4d5940f0151241b73c6c0c1eb290462eb9c279b0 (diff) | |
download | glibc-bf8c54240338eb84fe48eaef7a34d3cb7e954dd5.tar.gz glibc-bf8c54240338eb84fe48eaef7a34d3cb7e954dd5.tar.xz glibc-bf8c54240338eb84fe48eaef7a34d3cb7e954dd5.zip |
resolv: Compile without -Wno-write-strings
Diffstat (limited to 'resolv/herror.c')
-rw-r--r-- | resolv/herror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/herror.c b/resolv/herror.c index e285224fea..b3df236bc9 100644 --- a/resolv/herror.c +++ b/resolv/herror.c @@ -80,14 +80,14 @@ herror(const char *s) { v->iov_base = (/*noconst*/ char *)s; v->iov_len = strlen(s); v++; - v->iov_base = ": "; + v->iov_base = (char *) ": "; v->iov_len = 2; v++; } v->iov_base = (char *)hstrerror(h_errno); v->iov_len = strlen(v->iov_base); v++; - v->iov_base = "\n"; + v->iov_base = (char *) "\n"; v->iov_len = 1; writev_not_cancel_no_status(STDERR_FILENO, iov, (v - iov) + 1); } |