projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finalise NEWS.stable
[gnulib.git]
/
tests
/
test-getaddrinfo.c
diff --git
a/tests/test-getaddrinfo.c
b/tests/test-getaddrinfo.c
index
bd245b4
..
d2984e2
100644
(file)
--- a/
tests/test-getaddrinfo.c
+++ b/
tests/test-getaddrinfo.c
@@
-1,6
+1,6
@@
/* Test the getaddrinfo module.
/* Test the getaddrinfo module.
- Copyright (C) 2006-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
1
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
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
@@
-107,7
+107,7
@@
simple (char const *host, char const *service)
#endif
/* Provide details if errno was set. */
if (res == EAI_SYSTEM)
#endif
/* Provide details if errno was set. */
if (res == EAI_SYSTEM)
-
dbgprintf (
"system error: %s\n", strerror (err));
+
fprintf (stderr,
"system error: %s\n", strerror (err));
return 1;
}
return 1;
}
@@
-161,25
+161,6
@@
simple (char const *host, char const *service)
int main (void)
{
int main (void)
{
-#if _WIN32
- {
- WORD requested;
- WSADATA data;
- int err;
-
- requested = MAKEWORD (1, 1);
- err = WSAStartup (requested, &data);
- if (err != 0)
- return 1;
-
- if (data.wVersion < requested)
- {
- WSACleanup ();
- return 2;
- }
- }
-#endif
-
return simple (HOST1, SERV1)
+ simple (HOST2, SERV2)
+ simple (HOST3, SERV3)
return simple (HOST1, SERV1)
+ simple (HOST2, SERV2)
+ simple (HOST3, SERV3)