Mercurial > pidgin
changeset 9611:5e78d07f6b36
[gaim-migrate @ 10454]
datallah fixed some compile warnings
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Wed, 28 Jul 2004 04:25:32 +0000 |
parents | a6362795bf2c |
children | a11bc3f5c3e3 |
files | src/prefs.h src/win32/libc_interface.c src/win32/libc_interface.h |
diffstat | 3 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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;
--- 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 )