pidgin/android/libpurple

878c94d4ffb3
Parents 2b6a00fd8864
Children e176320b17f4
Use g_date_set_time_t instead of g_date_set_time

The latter is deprecated. The former is more appropriate here,
anyway, since we're passing in a time_t and not a GTime.

Fixes this compile warning:
utils.c: In function 'ggp_date_strftime':
utils.c:235:2: warning: 'g_date_set_time' is deprecated (declared at /usr/include/glib-2.0/glib/gdate.h:179): Use 'g_date_set_time_t' instead [-Wdeprecated-declarations]
--- a/libpurple/protocols/gg/utils.c Mon Feb 18 14:37:18 2013 -0800
+++ b/libpurple/protocols/gg/utils.c Mon Feb 18 14:42:16 2013 -0800
@@ -232,7 +232,7 @@
GDate g_date;
static gchar buff[30];
- g_date_set_time(&g_date, date);
+ g_date_set_time_t(&g_date, date);
if (0 == g_date_strftime(buff, sizeof(buff), format, &g_date))
return NULL;
return buff;