projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix warning in getaddrinfo() call.
[mmh]
/
sbr
/
client.c
diff --git
a/sbr/client.c
b/sbr/client.c
index
732fb47
..
a03809e
100644
(file)
--- a/
sbr/client.c
+++ b/
sbr/client.c
@@
-85,7
+85,7
@@
client (char *args, char *service, char *response, int len_response, int debug)
char address[NI_MAXHOST];
rc = getnameinfo(ai->ai_addr, ai->ai_addrlen, address,
- sizeof(address), NULL, NULL, NI_NUMERICHOST);
+ sizeof(address), NULL, 0, NI_NUMERICHOST);
fprintf(stderr, "Connecting to %s...\n",
rc ? "unknown" : address);