diff options
author | Michael Adam <obnox@samba.org> | 2016-03-25 01:29:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2016-05-13 00:16:15 +0200 |
commit | c15023449534a318ea57b28efa9ce9e800220952 (patch) | |
tree | 47bd1c687974e68f6ff2b8616f6021bc9da835fc /source4/libcli | |
parent | 258360f1eb738a6a1cc0efa878368d55f2cafef3 (diff) | |
download | samba-c15023449534a318ea57b28efa9ce9e800220952.tar.gz |
s4:libcli:resolve: fix O3 error unused result of write
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/resolve/dns_ex.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c index 08b69327223..6174b617cb3 100644 --- a/source4/libcli/resolve/dns_ex.c +++ b/source4/libcli/resolve/dns_ex.c @@ -41,6 +41,7 @@ #include "lib/util/util_net.h" #include "lib/addns/dnsquery.h" #include "lib/addns/dns.h" +#include "lib/util/sys_rw.h" #include <arpa/nameser.h> #include <resolv.h> @@ -370,7 +371,7 @@ static void run_child_dns_lookup(struct dns_ex_state *state, int fd) if (addrs) { DEBUG(11, ("Addrs = %s\n", addrs)); - write(fd, addrs, talloc_get_size(addrs)); + sys_write_v(fd, addrs, talloc_get_size(addrs)); } done: @@ -436,7 +437,7 @@ static void run_child_getaddrinfo(struct dns_ex_state *state, int fd) } if (addrs) { - write(fd, addrs, talloc_get_size(addrs)); + sys_write_v(fd, addrs, talloc_get_size(addrs)); } done: if (res_list) { |