]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
lint fix.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Oct 2011 14:39:35 +0000 (14:39 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Oct 2011 14:39:35 +0000 (14:39 +0000)
git-svn-id: file:///svn/unbound/trunk@2520 be551aaa-1e26-0410-a405-d3ace91eadb9

util/net_help.c

index 3df2cc11df2094df09a0fea5f7232af9b7f7f57e..c9604e21db153b805c49ce2ba68d687007bf7cc1 100644 (file)
@@ -200,7 +200,7 @@ ipstrtoaddr(const char* ip, int port, struct sockaddr_storage* addr,
                                return 0;
                        strncpy(buf, ip, MAX_ADDR_STRLEN);
                        buf[s-ip]=0;
-                       sa->sin6_scope_id = atoi(s+1);
+                       sa->sin6_scope_id = (uint32_t)atoi(s+1);
                        ip = buf;
                }
                if(inet_pton((int)sa->sin6_family, ip, &sa->sin6_addr) <= 0) {