summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-07 08:03:31 +0000
committerJune McEnroe <june@causal.agency>2020-12-07 08:03:31 +0000
commit96b04dc9cc3bdf2312e72f502cf24dc1394f8baa (patch)
treea7076232f31cd9a86459426bbcc31b58aa97ff53
parentInfer hostname from username (diff)
downloadbubger-96b04dc9cc3bdf2312e72f502cf24dc1394f8baa.tar.gz
bubger-96b04dc9cc3bdf2312e72f502cf24dc1394f8baa.zip
Remove use of AI_DEFAULT
This just causes getaddrinfo(3) to return EAI_BADFLAGS on FreeBSD,
strangely.
Diffstat (limited to '')
-rw-r--r--getservinfo.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/getservinfo.c b/getservinfo.c
index 3fc87b8..0db7bc0 100644
--- a/getservinfo.c
+++ b/getservinfo.c
@@ -132,9 +132,6 @@ int getservinfo(
 	snprintf(myServ, sizeof(myServ), "%hu", port);
 
 	struct addrinfo myHints = *hints;
-#ifdef AI_DEFAULT
-	if (!myHints.ai_flags) myHints.ai_flags = AI_DEFAULT;
-#endif
 	myHints.ai_flags |= AI_NUMERICSERV;
 	myHints.ai_flags &= ~AI_CANONNAME;