Mercurial > pidgin.yaz
changeset 27522:036d94041e09
Fix this compiler warning:
clientlogin.c: In function ¡Æsend_start_oscar_session¡Ç:
clientlogin.c:293: warning: format ¡Æ%zu¡Ç expects type ¡Æsize_t¡Ç, but argument 4 has type ¡Ætime_t¡Ç
I'm not sure it's 100% right this way but it preserves what was there
before for 64bit CPUs and makes my old crap happy too.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 10 Jul 2009 02:26:37 +0000 |
parents | 065294d973b4 |
children | 9e916fd25f48 |
files | libpurple/internal.h libpurple/protocols/oscar/clientlogin.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/internal.h Fri Jul 10 01:48:32 2009 +0000 +++ b/libpurple/internal.h Fri Jul 10 02:26:37 2009 +0000 @@ -230,6 +230,14 @@ # endif #endif +#if SIZEOF_TIME_T == 4 +# define PURPLE_TIME_T_MODIFIER "lu" +#elif SIZEOF_TIME_T == 8 +# define PURPLE_TIME_T_MODIFIER "zu" +#else +#error Unknown size of time_t +#endif + #include <glib-object.h> #ifndef G_DEFINE_TYPE
--- a/libpurple/protocols/oscar/clientlogin.c Fri Jul 10 01:48:32 2009 +0000 +++ b/libpurple/protocols/oscar/clientlogin.c Fri Jul 10 02:26:37 2009 +0000 @@ -288,7 +288,7 @@ query_string = g_strdup_printf("a=%s" "&f=xml" "&k=%s" - "&ts=%zu" + "&ts=%" PURPLE_TIME_T_MODIFIER "&useTLS=0", oscar_auth_url_encode(token), get_client_key(od), hosttime); signature = generate_signature("GET", URL_START_OSCAR_SESSION,