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 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.
-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;
 
3b42bc1365d16b9e4306e2639d49a3617797af&follow=1'>Add NetBSD to install.shJune McEnroe 2018-08-24Show hostname in title over SSHJune McEnroe 2018-08-23Alias bc='bc -l'June McEnroe 2018-08-20Update usage of scheme in READMEJune McEnroe 2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe 2018-08-20Generate scheme.hJune McEnroe 2018-08-20Add dependencies on gfx.hJune McEnroe 2018-08-18Add Blondie — Heart of GlassJune McEnroe Why didn't I know about this song? I love it. 2018-08-18Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe type is an alias for whence -v and is more for human consumption. 2018-08-18Cut off path components until right prompt fitsJune McEnroe Keeps paths valid (from somehwere) rather than abrupt truncation. 2018-08-17Add "private" alias to source encrypted fileJune McEnroe Why is there no easy way to *edit* an encrypted file? 2018-08-17Add vim mapping to add a #includeJune McEnroe