projects
/
platform
/
upstream
/
libsoup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e7e37
)
*** empty log message ***
author
Joe Shaw
<joeshaw@src.gnome.org>
Tue, 11 Feb 2003 21:29:31 +0000
(21:29 +0000)
committer
Joe Shaw
<joeshaw@src.gnome.org>
Tue, 11 Feb 2003 21:29:31 +0000
(21:29 +0000)
libsoup/soup-address.c
patch
|
blob
|
history
diff --git
a/libsoup/soup-address.c
b/libsoup/soup-address.c
index
ce6e306
..
2a66d24
100644
(file)
--- a/
libsoup/soup-address.c
+++ b/
libsoup/soup-address.c
@@
-498,22
+498,19
@@
soup_gethostbyname (const char *hostname,
#elif defined(HAVE_GETHOSTBYNAME_R_SOLARIS)
{
size_t len;
- int herr
, res
;
+ int herr;
len = 1024;
buf = g_new (char, len);
- while ((res = gethostbyname_r (hostname,
- &result_buf,
- buf,
- len,
- &herr)) == ERANGE) {
+ while ((res
ult
= gethostbyname_r (hostname,
+
&result_buf,
+
buf,
+
len,
+
&herr)) == ERANGE) {
len *= 2;
buf = g_renew (char, buf, len);
}
-
- if (res)
- result = NULL;
}
#elif defined(HAVE_GETHOSTBYNAME_R_HPUX)
{