Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'maint'
[gitweb.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index b2babcc076de65b53671157115e63e74fec83a3e..366db37b39f7dcfb29dbb4e79ad5bcc985b75bc6 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-453,7
+453,7
@@
static void parse_host_arg(char *extra_args, int buflen)
memset(&hints, 0, sizeof(hints));
hints.ai_flags = AI_CANONNAME;
- gai = getaddrinfo(hostname,
0
, &hints, &ai);
+ gai = getaddrinfo(hostname,
NULL
, &hints, &ai);
if (!gai) {
struct sockaddr_in *sin_addr = (void *)ai->ai_addr;