# HG changeset patch # User Tim Ringenbach # Date 1090988732 0 # Node ID 5e78d07f6b36d44b949af55e9e78130c44be14c7 # Parent a6362795bf2c8c9abd60d6564f84b2e1506be467 [gaim-migrate @ 10454] datallah fixed some compile warnings committer: Tailor Script diff -r a6362795bf2c -r 5e78d07f6b36 src/prefs.h --- a/src/prefs.h Wed Jul 28 00:51:27 2004 +0000 +++ b/src/prefs.h Wed Jul 28 04:25:32 2004 +0000 @@ -175,6 +175,14 @@ void gaim_prefs_set_string_list(const char *name, GList *value); /** + * Check if a pref exists + * + * @param name The name of the pref + * @return Whether or not the pref exists + */ +gboolean gaim_prefs_exists(const char *name); + +/** * Get pref type * * @param name The name of the pref diff -r a6362795bf2c -r 5e78d07f6b36 src/win32/libc_interface.c --- a/src/win32/libc_interface.c Wed Jul 28 00:51:27 2004 +0000 +++ b/src/win32/libc_interface.c Wed Jul 28 04:25:32 2004 +0000 @@ -100,7 +100,7 @@ return 0; } -int wgaim_setsockopt(int socket, int level, int optname, void *optval, socklen_t optlen) { +int wgaim_setsockopt(int socket, int level, int optname, const void *optval, socklen_t optlen) { if(setsockopt(socket, level, optname, optval, optlen) == SOCKET_ERROR ) { errno = WSAGetLastError(); return -1; diff -r a6362795bf2c -r 5e78d07f6b36 src/win32/libc_interface.h --- a/src/win32/libc_interface.h Wed Jul 28 00:51:27 2004 +0000 +++ b/src/win32/libc_interface.h Wed Jul 28 04:25:32 2004 +0000 @@ -41,7 +41,7 @@ #define getsockopt( args... ) \ wgaim_getsockopt( args ) -extern int wgaim_setsockopt(int socket, int level, int optname, void *optval, socklen_t optlen); +extern int wgaim_setsockopt(int socket, int level, int optname, const void *optval, socklen_t optlen); #define setsockopt( args... ) \ wgaim_setsockopt( args )