diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-04-10 02:41:17 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-04-10 02:41:17 +0800 |
commit | 891b85f5e0f5372450c3e0950407afe11c96b531 (patch) | |
tree | dae41650a3050c06d4d1868901d837f795e4f6bc /e-util/e-host-utils.c | |
parent | c70fa695ca533b2e61721345cc74e56bc29b68f1 (diff) | |
download | gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.tar gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.tar.gz gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.tar.bz2 gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.tar.lz gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.tar.xz gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.tar.zst gsoc2013-evolution-891b85f5e0f5372450c3e0950407afe11c96b531.zip |
Change the 'len' argument to 'addrlen' so that when IPv6 is enabled, our
2003-04-09 Jeffrey Stedfast <fejj@ximian.com>
* e-host-utils.c (e_gethostbyaddr_r): Change the 'len' argument to
'addrlen' so that when IPv6 is enabled, our temp vriable (also
named len) does not cause confusion. Fixes bug #40979.
svn path=/trunk/; revision=20791
Diffstat (limited to 'e-util/e-host-utils.c')
-rw-r--r-- | e-util/e-host-utils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/e-util/e-host-utils.c b/e-util/e-host-utils.c index 1e9fcbb14c..248c22afd7 100644 --- a/e-util/e-host-utils.c +++ b/e-util/e-host-utils.c @@ -269,7 +269,7 @@ e_gethostbyname_r (const char *name, struct hostent *host, /** * e_gethostbyaddr_r: * @addr: the addr to resolve - * @len: address length + * @addrlen: address length * @type: AF type * @host: a buffer pointing to a struct hostent to use for storage * @buf: a buffer to use for hostname storage @@ -283,7 +283,7 @@ e_gethostbyname_r (const char *name, struct hostent *host, * one of the gethostbyaddr() error codes). **/ int -e_gethostbyaddr_r (const char *addr, int len, int type, struct hostent *host, +e_gethostbyaddr_r (const char *addr, int addrlen, int type, struct hostent *host, char *buf, size_t buflen, int *herr) { #ifdef ENABLE_IPv6 @@ -350,7 +350,7 @@ e_gethostbyaddr_r (const char *addr, int len, int type, struct hostent *host, #else /* No support for IPv6 addresses */ #ifdef HAVE_GETHOSTBYADDR_R #ifdef GETHOSTBYADDR_R_SEVEN_ARGS - if (gethostbyaddr_r (addr, len, type, host, buf, buflen, herr)) + if (gethostbyaddr_r (addr, addrlen, type, host, buf, buflen, herr)) return 0; else return errno; @@ -358,7 +358,7 @@ e_gethostbyaddr_r (const char *addr, int len, int type, struct hostent *host, struct hostent *hp; int retval; - retval = gethostbyaddr_r (addr, len, type, host, buf, buflen, &hp, herr); + retval = gethostbyaddr_r (addr, addrlen, type, host, buf, buflen, &hp, herr); if (hp != NULL) *herr = 0; return retval; @@ -368,7 +368,7 @@ e_gethostbyaddr_r (const char *addr, int len, int type, struct hostent *host, G_LOCK (gethost_mutex); - h = gethostbyaddr (addr, len, type); + h = gethostbyaddr (addr, addrlen, type); if (!h) { *herr = h_errno; |