changeset 12728:fb3b7466e3d2

[gaim-migrate @ 15072] whitespace fixes committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 05 Jan 2006 04:01:07 +0000
parents ae51c59bf819
children d3232d64fafd
files src/network.c
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/network.c	Thu Jan 05 03:14:51 2006 +0000
+++ b/src/network.c	Thu Jan 05 04:01:07 2006 +0000
@@ -183,7 +183,7 @@
 {
 	int listenfd = -1;
 	const int on = 1;
-  GaimUPnPControlInfo* controlInfo = NULL;
+	GaimUPnPControlInfo* controlInfo = NULL;
 #if HAVE_GETADDRINFO
 	int errnum;
 	struct addrinfo hints, *res, *next;
@@ -258,20 +258,20 @@
 	}
 	fcntl(listenfd, F_SETFL, O_NONBLOCK);
 
-  if((controlInfo = gaim_upnp_discover()) != NULL) {
-    if(!gaim_upnp_set_port_mapping(controlInfo, 
-                    gaim_network_get_port_from_fd(listenfd), 
-                    "TCP")) {
-      gaim_upnp_remove_port_mapping(controlInfo, 
-                gaim_network_get_port_from_fd(listenfd), "TCP");
-      gaim_upnp_set_port_mapping(controlInfo, 
-                gaim_network_get_port_from_fd(listenfd), "TCP");
+	if ((controlInfo = gaim_upnp_discover()) != NULL) {
+		if (!gaim_upnp_set_port_mapping(controlInfo,
+				gaim_network_get_port_from_fd(listenfd),
+				"TCP")) {
+			gaim_upnp_remove_port_mapping(controlInfo,
+				gaim_network_get_port_from_fd(listenfd), "TCP");
+			gaim_upnp_set_port_mapping(controlInfo,
+				gaim_network_get_port_from_fd(listenfd), "TCP");
 
-    } 
-    g_free(controlInfo->serviceType);
-    g_free(controlInfo->controlURL);
-    g_free(controlInfo);
-  }
+		}
+		g_free(controlInfo->serviceType);
+		g_free(controlInfo->controlURL);
+		g_free(controlInfo);
+	}
 
 	gaim_debug_info("network", "Listening on port: %hu\n", gaim_network_get_port_from_fd(listenfd));
 	return listenfd;