]> git.ipfire.org Git - people/ms/dma.git/blobdiff - dns.c
clear up warnings found by clang static analysis
[people/ms/dma.git] / dns.c
diff --git a/dns.c b/dns.c
index ce80745730e91d2bc728ed068bfdc30ffa87dcc7..fc5213f1ca605600baa07ebcc9b0281671b133fd 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -66,12 +66,9 @@ add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t
        struct addrinfo hints, *res, *res0 = NULL;
        char servname[10];
        struct mx_hostentry *p;
-       size_t onhosts;
        const int count_inc = 10;
        int err;
 
-       onhosts = *ps;
-
        memset(&hints, 0, sizeof(hints));
        hints.ai_family = PF_UNSPEC;
        hints.ai_socktype = SOCK_STREAM;