mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Try to avoid signedness warnings.
This commit is contained in:
parent
12e63bfe1d
commit
3f358cfc9f
1 changed files with 4 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: lwtest.c,v 1.8 2000/06/28 21:56:51 bwelling Exp $ */
|
||||
/* $Id: lwtest.c,v 1.9 2000/06/28 22:41:46 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -350,7 +350,8 @@ static void
|
|||
test_getaddrinfo(const char *name, int af, int v4ok, int v6ok,
|
||||
const char *address)
|
||||
{
|
||||
int len, ret;
|
||||
unsigned int len;
|
||||
int ret;
|
||||
struct addrinfo *ai;
|
||||
struct addrinfo hint;
|
||||
unsigned char addrbuf[16];
|
||||
|
|
@ -392,7 +393,7 @@ test_getaddrinfo(const char *name, int af, int v4ok, int v6ok,
|
|||
fails++;
|
||||
return;
|
||||
}
|
||||
if (len != ai->ai_addrlen) {
|
||||
if (len != (unsigned int) ai->ai_addrlen) {
|
||||
char outbuf[16];
|
||||
(void)inet_ntop(af, ai->ai_addr,
|
||||
outbuf, sizeof(outbuf));
|
||||
|
|
|
|||
Loading…
Reference in a new issue