projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e84039
)
Fix compiler warning
author
Yang Tse
<yangsita@gmail.com>
Fri, 9 Dec 2005 22:23:50 +0000
(22:23 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 9 Dec 2005 22:23:50 +0000
(22:23 +0000)
ares_getnameinfo.c
patch
|
blob
|
history
diff --git
a/ares_getnameinfo.c
b/ares_getnameinfo.c
index
35e611f
..
23ca0cb
100644
(file)
--- a/
ares_getnameinfo.c
+++ b/
ares_getnameinfo.c
@@
-270,6
+270,7
@@
static char *lookup_service(unsigned short port, int flags,
char buf[4096];
int len = 4096;
#elif GETSERVBYPORT_R_ARGS == 5
+ struct servent ret;
char buf[4096];
int len = 4096;
#elif GETSERVBYPORT_R_ARGS == 4
@@
-291,6
+292,7
@@
static char *lookup_service(unsigned short port, int flags,
if (getservbyport_r(port, proto, se, buf, len, &ret))
se = NULL;
#elif GETSERVBYPORT_R_ARGS == 5
+ se = &ret;
se = getservbyport_r(port, proto, se, buf, len);
#elif GETSERVBYPORT_R_ARGS == 4
se = &ret;