ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / jw / jwhois / service-name.patch
blob170eddbad794da5dd3670a292d9c506589484d81
1 --- a/src/dns.c 2007-06-25 23:58:38.000000000 -0700
2 +++ b/src/dns.c 2016-06-04 16:20:19.644865127 -0700
3 @@ -113,12 +113,13 @@
4 lookup_host_addrinfo(struct addrinfo **res, const char *host, int port)
6 struct addrinfo hints;
7 - char ascport[10] = "whois";
8 + char ascport[10] = "nicname";
9 int error;
11 memset(&hints, 0, sizeof(hints));
12 hints.ai_family = PF_UNSPEC;
14 + hints.ai_flags = AI_ADDRCONFIG;
15 hints.ai_socktype = SOCK_STREAM;
16 if (port)
17 sprintf(ascport, "%9.9d", port);