projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3112e6a
)
Compilation fix.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 17 Aug 2003 12:03:40 +0000
(12:03 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 17 Aug 2003 12:03:40 +0000
(12:03 +0000)
lib/fake-getnameinfo.c
patch
|
blob
|
history
diff --git
a/lib/fake-getnameinfo.c
b/lib/fake-getnameinfo.c
index
a0e1df3
..
796efdf
100644
(file)
--- a/
lib/fake-getnameinfo.c
+++ b/
lib/fake-getnameinfo.c
@@
-35,7
+35,7
@@
int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t host
return 0;
if(flags & NI_NUMERICHOST) {
- len = snprintf(
(
host, hostlen, "%s", inet_ntoa(sin->sin_addr));
+ len = snprintf(host, hostlen, "%s", inet_ntoa(sin->sin_addr));
if(len < 0 || len >= hostlen)
return EAI_MEMORY;
return 0;
@@
-46,7
+46,7
@@
int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t host
if(!hp || !hp->h_name || !hp->h_name[0])
return EAI_NODATA;
- len = snprintf(
(
host, hostlen, "%s", hp->h_name);
+ len = snprintf(host, hostlen, "%s", hp->h_name);
if(len < 0 || len >= hostlen)
return EAI_MEMORY;