summaryrefslogtreecommitdiff
path: root/gnulib-tests/test-getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib-tests/test-getaddrinfo.c')
-rw-r--r--gnulib-tests/test-getaddrinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnulib-tests/test-getaddrinfo.c b/gnulib-tests/test-getaddrinfo.c
index acf9cd66..0cfb1f1a 100644
--- a/gnulib-tests/test-getaddrinfo.c
+++ b/gnulib-tests/test-getaddrinfo.c
@@ -1,6 +1,6 @@
/* Test the getaddrinfo module.
- Copyright (C) 2006-2014 Free Software Foundation, Inc.
+ Copyright (C) 2006-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -116,11 +116,11 @@ simple (char const *host, char const *service)
{
void *ai_addr = ai->ai_addr;
struct sockaddr_in *sock_addr = ai_addr;
- dbgprintf ("\tflags %x\n", ai->ai_flags);
- dbgprintf ("\tfamily %x\n", ai->ai_family);
- dbgprintf ("\tsocktype %x\n", ai->ai_socktype);
- dbgprintf ("\tprotocol %x\n", ai->ai_protocol);
- dbgprintf ("\taddrlen %ld: ", (unsigned long) ai->ai_addrlen);
+ dbgprintf ("\tflags %x\n", ai->ai_flags + 0u);
+ dbgprintf ("\tfamily %x\n", ai->ai_family + 0u);
+ dbgprintf ("\tsocktype %x\n", ai->ai_socktype + 0u);
+ dbgprintf ("\tprotocol %x\n", ai->ai_protocol + 0u);
+ dbgprintf ("\taddrlen %lu: ", (unsigned long) ai->ai_addrlen);
dbgprintf ("\tFound %s\n",
inet_ntop (ai->ai_family,
&sock_addr->sin_addr,