diff src/proxy.c @ 2048:3366311426df

[gaim-migrate @ 2058] little things committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 17 Jun 2001 08:37:44 +0000
parents a02584b98823
children b66aca8e8dce
line wrap: on
line diff
--- a/src/proxy.c	Sun Jun 17 04:35:09 2001 +0000
+++ b/src/proxy.c	Sun Jun 17 08:37:44 2001 +0000
@@ -57,7 +57,8 @@
 static void no_one_calls(gpointer data, gint source, GdkInputCondition cond)
 {
 	struct PHB *phb = data;
-	int len, error = ETIMEDOUT;
+	unsigned int len;
+	int error = ETIMEDOUT;
 	debug_printf("Connected\n");
 	len = sizeof(error);
 	if (getsockopt(source, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
@@ -118,7 +119,8 @@
 			return -1;
 		}
 	} else {
-		int len, error = ETIMEDOUT;
+		unsigned int len;
+		int error = ETIMEDOUT;
 		debug_printf("Connect didn't block\n");
 		len = sizeof(error);
 		if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
@@ -177,7 +179,8 @@
 {
 	char cmd[384];
 	struct PHB *phb = data;
-	int len, error = ETIMEDOUT;
+	unsigned int len;
+	int error = ETIMEDOUT;
 	debug_printf("Connected\n");
 	if (phb->inpa > 0)
 		gdk_input_remove(phb->inpa);
@@ -266,7 +269,8 @@
 			return -1;
 		}
 	} else {
-		int len, error = ETIMEDOUT;
+		unsigned int len;
+		int error = ETIMEDOUT;
 		debug_printf("Connect didn't block\n");
 		len = sizeof(error);
 		if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
@@ -308,7 +312,8 @@
 	unsigned char packet[12];
 	struct hostent *hp;
 	struct PHB *phb = data;
-	int len, error = ETIMEDOUT;
+	unsigned int len;
+	int error = ETIMEDOUT;
 	debug_printf("Connected\n");
 	if (phb->inpa > 0)
 		gdk_input_remove(phb->inpa);
@@ -389,7 +394,8 @@
 			return -1;
 		}
 	} else {
-		int len, error = ETIMEDOUT;
+		unsigned int len;
+		int error = ETIMEDOUT;
 		debug_printf("Connect didn't block\n");
 		len = sizeof(error);
 		if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
@@ -539,7 +545,8 @@
 	unsigned char buf[512];
 	int i;
 	struct PHB *phb = data;
-	int len, error = ETIMEDOUT;
+	unsigned int len;
+	int error = ETIMEDOUT;
 	debug_printf("Connected\n");
 	if (phb->inpa > 0)
 		gdk_input_remove(phb->inpa);
@@ -616,7 +623,8 @@
 			return -1;
 		}
 	} else {
-		int len, error = ETIMEDOUT;
+		unsigned int len;
+		int error = ETIMEDOUT;
 		debug_printf("Connect didn't block\n");
 		len = sizeof(error);
 		if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {