]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
lint
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Wed, 14 Sep 2005 07:20:07 +0000 (07:20 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Wed, 14 Sep 2005 07:20:07 +0000 (07:20 +0000)
net.c

diff --git a/net.c b/net.c
index 5abcf04e7c9969da66efc0b0f4ecaf3041333286..da3a759ad0464c62bd76c4d0f9f8d0744cd20380 100644 (file)
--- a/net.c
+++ b/net.c
@@ -295,7 +295,7 @@ ldns_tcp_send_query(ldns_buffer *qbin, int sockfd,
        if (bytes == -1) {
                if (to) {
                        addr_str = LDNS_XMALLOC(char, tolen + 1);
-                       inet_ntop(to->ss_family, (struct sock_addr *)to, addr_str, tolen);
+                       (void) inet_ntop((int) to->ss_family, (struct sock_addr *)to, addr_str, tolen);
                        LDNS_FREE(addr_str);
                }
                dprintf("error sending to %s\n", addr_str);
@@ -322,7 +322,7 @@ ldns_udp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage
        if (bytes == -1) {
                if (to) {
                        addr_str = LDNS_XMALLOC(char, tolen + 1);
-                       inet_ntop(to->ss_family, (struct sockaddr *)to, addr_str, tolen);
+                       (void) inet_ntop((int) to->ss_family, (struct sockaddr *)to, addr_str, tolen);
                        LDNS_FREE(addr_str);
                }
                dprintf("error sending to %s\n", addr_str);