about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-06 18:09:57 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-06 18:09:57 +0000
commitc56da3a39b4da2cd4226e3ad937d48cc4c988149 (patch)
treeb306f712bb8ae2c32916da9a9804fa2b36e35912 /posix
parent6bdd38ba719f92869fd7db62ad5d9368ad1b9e26 (diff)
downloadglibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.tar.gz
glibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.tar.xz
glibc-c56da3a39b4da2cd4226e3ad937d48cc4c988149.zip
Update.
	* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
	(do_test): Use %p instead of 0x%08X to print a pointer.

	* malloc/malloc.c: Include stdio-common/_itoa.h.
Diffstat (limited to 'posix')
-rw-r--r--posix/tst-getaddrinfo2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/posix/tst-getaddrinfo2.c b/posix/tst-getaddrinfo2.c
index b0bce5925c..13edca0a34 100644
--- a/posix/tst-getaddrinfo2.c
+++ b/posix/tst-getaddrinfo2.c
@@ -2,6 +2,8 @@
 #include <errno.h>
 #include <netdb.h>
 #include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 #include <sys/socket.h>
 
 static int
@@ -47,7 +49,7 @@ do_test (void)
       if (err)
         {
           printf ("FAIL getaddrinfo IPv4 socktype 0,513: "
-                  "fam %d alen %d addr 0x%08X addr/fam %d "
+                  "fam %d alen %d addr %p addr/fam %d "
                   "addr/port %d H[%d]\n",
                   pai->ai_family, pai->ai_addrlen, psin,
                   psin ? psin->sin_family : 0,