diff libpurple/network.c @ 15949:b4ab4812838a

purple_pmp_create_map() returns a gboolean now, not a pointer
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 27 Mar 2007 04:20:55 +0000
parents 3a45be1c3281
children 1a12ce76c4f4
line wrap: on
line diff
--- a/libpurple/network.c	Tue Mar 27 03:08:31 2007 +0000
+++ b/libpurple/network.c	Tue Mar 27 04:20:55 2007 +0000
@@ -364,7 +364,7 @@
 #ifdef ENABLE_NAT_PMP
 	/* Attempt a NAT-PMP Mapping, which will return immediately */
 	if (purple_pmp_create_map(((socket_type == SOCK_STREAM) ? PURPLE_PMP_TYPE_TCP : PURPLE_PMP_TYPE_UDP),
-							  actual_port, actual_port, PURPLE_PMP_LIFETIME) != NULL)
+							  actual_port, actual_port, PURPLE_PMP_LIFETIME))
 	{
 		purple_debug_info("network", "Created NAT-PMP mapping on port %i",actual_port);
 		/* We want to return listen_data now, and on the next run loop trigger the cb and destroy listen_data */