diff libpurple/protocols/gg/lib/dcc.c @ 32072:3a90a59ddea2

Update libgadu to 0.11.0 plus local changes; thanks to Tomasz Wasilczyk. Fixes 14248
author Ethan Blanton <elb@pidgin.im>
date Sun, 05 Jun 2011 01:28:53 +0000
parents 93b08d43f684
children 9c9143e32b6c
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/dcc.c	Tue May 24 01:48:26 2011 +0000
+++ b/libpurple/protocols/gg/lib/dcc.c	Sun Jun 05 01:28:53 2011 +0000
@@ -25,11 +25,9 @@
  *
  * \brief Obsługa połączeń bezpośrednich do wersji Gadu-Gadu 6.x
  */
-#include "libgadu.h"
 
 #include <sys/types.h>
 #include <sys/stat.h>
-
 #ifndef _WIN32
 #  include <sys/ioctl.h>
 #  include <sys/socket.h>
@@ -50,6 +48,7 @@
 #include <unistd.h>
 
 #include "compat.h"
+#include "libgadu.h"
 
 #ifndef GG_DEBUG_DISABLE
 
@@ -421,7 +420,7 @@
 		return NULL;
 	}
 
-	if (port == 0 || port == -1)
+	if (port == 0 || port == (uint16_t)-1) /* XXX: port is unsigned */
 		port = GG_DEFAULT_DCC_PORT;
 
 	while (!bound) {