Mercurial > pidgin
diff src/proxy.c @ 12991:c1b2ba353e85
[gaim-migrate @ 15344]
SF Patch #1411771 from Tim Mooney
This fixes some cases where we should be using socklen_t as the variable type.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 22 Jan 2006 21:02:52 +0000 |
parents | 36930e2a461e |
children | e8adf8183cf4 |
line wrap: on
line diff
--- a/src/proxy.c Sun Jan 22 19:52:17 2006 +0000 +++ b/src/proxy.c Sun Jan 22 21:02:52 2006 +0000 @@ -923,7 +923,7 @@ no_one_calls(gpointer data, gint source, GaimInputCondition cond) { struct PHB *phb = data; - unsigned int len; + socklen_t len; int error=0, ret; gaim_debug_info("proxy", "Connected.\n"); @@ -1018,7 +1018,7 @@ } } else { - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_misc("proxy", "Connect didn't block.\n"); len = sizeof(error); @@ -1205,7 +1205,7 @@ char request[8192]; int request_len = 0; struct PHB *phb = data; - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_info("http proxy", "Connected.\n"); @@ -1296,7 +1296,7 @@ } } else { - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_misc("http proxy", @@ -1347,7 +1347,7 @@ unsigned char packet[12]; struct hostent *hp; struct PHB *phb = data; - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_info("socks4 proxy", "Connected.\n"); @@ -1430,7 +1430,7 @@ return -1; } } else { - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_misc("socks4 proxy", @@ -1778,7 +1778,7 @@ unsigned char buf[512]; int i; struct PHB *phb = data; - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_info("socks5 proxy", "Connected.\n"); @@ -1854,7 +1854,7 @@ } } else { - unsigned int len; + socklen_t len; int error = ETIMEDOUT; gaim_debug_misc("socks5 proxy",