? .hg
? aclocal.m4
? autom4te.cache
? bcn.ircd.motd
? cache
? config.settings.bac
? ircd.pid
? ircd.tune
? location.conf
? motd.txt
? robots.txt
? server.cert.pem
? server.key.pem
? server.req.pem
? smotd.txt
? tmp
? unreal-3939-fix-casts-const.patch
? unrealircd.conf
? valgrind.unreal.suppress
? autoconf/acinclude.m4
? extras/c-ares
? extras/c-ares-1.6.0
? extras/c-ares.tar
? src/modules/callerid.c
? src/modules/m_soper.c
? src/modules/testchanmodehook.c
Index: Changes
===================================================================
RCS file: /cvs/unreal/Changes,v
retrieving revision 1.1.1.1.2.1.2.1.2.2234.2.853
diff -u -B -r1.1.1.1.2.1.2.1.2.2234.2.853 Changes
--- Changes	22 Jul 2010 12:33:09 -0000	1.1.1.1.2.1.2.1.2.2234.2.853
+++ Changes	22 Jul 2010 17:29:09 -0000
@@ -2058,3 +2058,4 @@
 - Fix the detection for curl-without-c-ares a little (#0003940).
 - Add an extban of the schema +b ~j:*!*@* which _only_ prevents a user
   from joining a channel. (#3192)
+- Fix a few compiler warnings with some double-casting. (#3939)
Index: configure.ac
===================================================================
RCS file: /cvs/unreal/Attic/configure.ac,v
retrieving revision 1.1.2.6
diff -u -B -r1.1.2.6 configure.ac
--- configure.ac	20 Jul 2010 16:09:10 -0000	1.1.2.6
+++ configure.ac	22 Jul 2010 17:29:09 -0000
@@ -191,8 +191,11 @@
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
+
 AC_TYPE_MODE_T
 AC_TYPE_SIZE_T
+AC_TYPE_INTPTR_T
+
 AC_HEADER_TIME
 AC_STRUCT_TM
 AC_TYPE_UID_T
Index: src/s_user.c
===================================================================
RCS file: /cvs/unreal/src/s_user.c,v
retrieving revision 1.1.1.1.6.1.2.316.2.24
diff -u -B -r1.1.1.1.6.1.2.316.2.24 s_user.c
--- src/s_user.c	4 Nov 2006 00:10:53 -0000	1.1.1.1.6.1.2.316.2.24
+++ src/s_user.c	22 Jul 2010 17:29:09 -0000
@@ -460,7 +460,7 @@
 #ifndef _WIN32			/* This is not windows compatible */
 	u_char *p;
 #ifndef __alpha
-	u_int tmp = ((u_int)target & 0xffff00) >> 8;
+	u_int tmp = ((u_int)(intptr_t)target & 0xffff00) >> 8;
 #else
 	u_int tmp = ((u_long)target & 0xffff00) >> 8;
 #endif
Index: src/ssl.c
===================================================================
RCS file: /cvs/unreal/src/Attic/ssl.c,v
retrieving revision 1.1.2.57.2.11
diff -u -B -r1.1.2.57.2.11 ssl.c
--- src/ssl.c	6 Dec 2009 16:52:52 -0000	1.1.2.57.2.11
+++ src/ssl.c	22 Jul 2010 17:29:09 -0000
@@ -428,7 +428,7 @@
 {
 	static char buf[400];
 	int bits;
-	SSL_CIPHER *c; 
+	const SSL_CIPHER *c; 
 	
 	buf[0] = '\0';
 	strcpy(buf, SSL_get_version(ssl));
Index: src/support.c
===================================================================
RCS file: /cvs/unreal/src/support.c,v
retrieving revision 1.1.1.1.6.1.2.45.2.23
diff -u -B -r1.1.1.1.6.1.2.45.2.23 support.c
--- src/support.c	17 Jun 2010 02:41:43 -0000	1.1.1.1.6.1.2.45.2.23
+++ src/support.c	22 Jul 2010 17:29:10 -0000
@@ -1821,7 +1821,8 @@
 	else
 	{
 		ia.s_addr = inet_addr(ip);
-		cp = (u_char *)ia.s_addr;
+		
+		cp = (u_char *)(intptr_t)ia.s_addr;
 		b64_encode((char *)&cp, sizeof(struct in_addr), buf, 25);
 	}
 	return buf;
