/pidgin/main: 878c94d4ffb3: Use g_date_set_time_t instead of g_d...

Mark Doliner mark at kingant.net
Mon Feb 18 18:41:55 EST 2013


Changeset: 878c94d4ffb34c337058be9de15f851d59885e97
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2013-02-18 14:42 -0800
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/878c94d4ffb3

Description:

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]

diffstat:

 libpurple/protocols/gg/utils.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/gg/utils.c b/libpurple/protocols/gg/utils.c
--- a/libpurple/protocols/gg/utils.c
+++ b/libpurple/protocols/gg/utils.c
@@ -232,7 +232,7 @@ const gchar * ggp_date_strftime(const gc
 	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;



More information about the Commits mailing list