pidgin: 37a75d3f: Warning fixes

datallah at pidgin.im datallah at pidgin.im
Sun Feb 28 23:36:39 EST 2010


-----------------------------------------------------------------
Revision: 37a75d3f68ccde96a9e7fec7df5e7367df0a6586
Ancestor: 4f72b32161706de88c331c2f1470e75053e16f30
Author: datallah at pidgin.im
Date: 2010-03-01T04:29:18
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/37a75d3f68ccde96a9e7fec7df5e7367df0a6586

Modified files:
        libpurple/win32/libc_interface.c

ChangeLog: 

Warning fixes

-------------- next part --------------
============================================================
--- libpurple/win32/libc_interface.c	599b6612c198aa7ef0430df39d5ca2caa02242a3
+++ libpurple/win32/libc_interface.c	145a7fb7a70836074b5ef0e72e37025f1590073b
@@ -62,7 +62,7 @@ static int wpurple_is_socket( int fd ) {
 /* helpers */
 static int wpurple_is_socket( int fd ) {
 	int optval;
-	unsigned int optlen = sizeof(int);
+	int optlen = sizeof(int);
 
 	if( (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void*)&optval, &optlen)) == SOCKET_ERROR ) {
 		int error = WSAGetLastError();
@@ -973,7 +973,7 @@ wpurple_get_timezone_abbreviation(const 
 
 		memset(zonename, 0, sizeof(zonename));
 		namesize = sizeof(zonename);
-		if ((r = RegQueryValueEx(key, "Std", NULL, NULL, zonename, &namesize)) != ERROR_SUCCESS)
+		if ((r = RegQueryValueEx(key, "Std", NULL, NULL, (LPBYTE)zonename, &namesize)) != ERROR_SUCCESS)
 		{
 			purple_debug_warning("wpurple", "could not query value for 'std' to identify Windows timezone: %i\n", (int) r);
 			RegCloseKey(key);
@@ -988,7 +988,7 @@ wpurple_get_timezone_abbreviation(const 
 		}
 		memset(zonename, 0, sizeof(zonename));
 		namesize = sizeof(zonename);
-		if ((r = RegQueryValueEx(key, "Dlt", NULL, NULL, zonename, &namesize)) != ERROR_SUCCESS)
+		if ((r = RegQueryValueEx(key, "Dlt", NULL, NULL, (LPBYTE)zonename, &namesize)) != ERROR_SUCCESS)
 		{
 			purple_debug_warning("wpurple", "could not query value for 'dlt' to identify Windows timezone: %i\n", (int) r);
 			RegCloseKey(key);


More information about the Commits mailing list