# HG changeset patch # User Mark Doliner # Date 1174783843 0 # Node ID 3a45be1c3281118664e597eed55e8c8035f2b1d2 # Parent ab2f466b6a13d8d819f988aab7034c3fd7f48d88 Whitespace and make sure stuff is #defined to an actual value. I feel some some pickier compilers have problems with that. diff -r ab2f466b6a13 -r 3a45be1c3281 libpurple/network.c --- a/libpurple/network.c Sun Mar 25 00:45:40 2007 +0000 +++ b/libpurple/network.c Sun Mar 25 00:50:43 2007 +0000 @@ -47,7 +47,7 @@ #include "stun.h" #include "upnp.h" -/* #define ENABLE_NAT_PMP */ +/* #define ENABLE_NAT_PMP 1 */ #ifdef ENABLE_NAT_PMP #include "nat-pmp.h" @@ -199,7 +199,7 @@ return ip; #ifdef ENABLE_NAT_PMP - /* Attempt to ge tthe IP from a NAT device using NAT-PMP */ + /* Attempt to get the IP from a NAT device using NAT-PMP */ ip = purple_pmp_get_public_ip(); if (ip != NULL) return ip; @@ -255,9 +255,9 @@ purple_network_finish_pmp_map_cb(gpointer data) { PurpleNetworkListenData *listen_data; - + listen_data = data; - + if (listen_data->cb) listen_data->cb(listen_data->listenfd, listen_data->cb_data); @@ -353,7 +353,7 @@ actual_port = purple_network_get_port_from_fd(listenfd); purple_debug_info("network", "Listening on port: %hu\n", actual_port); - + listen_data = g_new0(PurpleNetworkListenData, 1); listen_data->listenfd = listenfd; listen_data->adding = TRUE;