changeset 29366:ecd1aa92fd57

Clean up a little.
author Paul Aurich <paul@darkrain42.org>
date Mon, 15 Feb 2010 22:32:33 +0000
parents 2debb45f1df8
children 667806b1f359
files libpurple/network.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/network.c	Mon Feb 15 22:24:26 2010 +0000
+++ b/libpurple/network.c	Mon Feb 15 22:32:33 2010 +0000
@@ -160,7 +160,7 @@
 	struct ifconf ifc;
 	struct ifreq *ifr;
 	struct sockaddr_in *sinptr;
-	guint32 lhost = htonl(127 * 256 * 256 * 256 + 1);
+	guint32 lhost = htonl((127 << 24) + 1); /* 127.0.0.1 */
 	long unsigned int add;
 	int source = fd;
 
@@ -204,12 +204,12 @@
 purple_network_get_all_local_system_ips(void)
 {
 	GList *result = NULL;
-	int source = source = socket(PF_INET,SOCK_STREAM, 0);
+	int source = socket(PF_INET,SOCK_STREAM, 0);
 	char buffer[1024];
 	char *tmp;
 	struct ifconf ifc;
 	struct ifreq *ifr;
-	
+
 	ifc.ifc_len = sizeof(buffer);
 	ifc.ifc_req = (struct ifreq *)buffer;
 	ioctl(source, SIOCGIFCONF, &ifc);