# HG changeset patch # User Stu Tomlinson # Date 1247192797 0 # Node ID 036d94041e09ef40eea9640dd21b9d8ffc70f7e7 # Parent 065294d973b430a37e4608d88c29ac69c57ad814 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. diff -r 065294d973b4 -r 036d94041e09 libpurple/internal.h --- 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 #ifndef G_DEFINE_TYPE diff -r 065294d973b4 -r 036d94041e09 libpurple/protocols/oscar/clientlogin.c --- 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,