about 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 03:08:26 -0500
commit4eb607d725ed987a4b885d5f9b12e5c59debe6c3 (patch)
tree7a59feb82b8d41eed9cb2f8288d94e4f74648f09
parentAdd -lresolv on Linux (diff)
downloadimbox-4eb607d725ed987a4b885d5f9b12e5c59debe6c3.tar.gz
imbox-4eb607d725ed987a4b885d5f9b12e5c59debe6c3.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;