changeset 9100:4b3e5a5063f9

[gaim-migrate @ 9877] For some reason Stu thinks that 'Error: Success' is undesirable. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Fri, 28 May 2004 00:47:45 +0000
parents 8da67bfea813
children 1773fa529d63
files src/proxy.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/proxy.c	Fri May 28 00:12:12 2004 +0000
+++ b/src/proxy.c	Fri May 28 00:47:45 2004 +0000
@@ -690,7 +690,7 @@
 	if (ret == 0 && error == EINPROGRESS)
 		return; // we'll be called again later
 	if (ret < 0 || error != 0) {
-		if(ret==0) errno = error;
+		if(ret!=0) error = errno;
 		close(source);
 		gaim_input_remove(phb->inpa);
 
@@ -704,7 +704,7 @@
 		g_free(phb);
 
 		gaim_debug(GAIM_DEBUG_ERROR, "proxy",
-			   "getsockopt SO_ERROR check: %s\n", strerror(errno));
+			   "getsockopt SO_ERROR check: %s\n", strerror(error));
 		return;
 	}
 
@@ -761,7 +761,7 @@
 		}
 		else {
 			gaim_debug(GAIM_DEBUG_ERROR, "proxy",
-					   "Connect failed (errno %d)\n", errno);
+					   "Connect failed: %s\n", strerror(errno));
 			close(fd);
 			return -1;
 		}