From: Richard L. <rl...@us...> - 2006-01-12 07:07:10
|
Update of /cvsroot/gaim/gaim/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27313/plugins Modified Files: timestamp_format.c Log Message: Warning fix, plus it's proper to #include <time.h> if I'm going to use mktime. Index: timestamp_format.c =================================================================== RCS file: /cvsroot/gaim/gaim/plugins/timestamp_format.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- timestamp_format.c 12 Jan 2006 06:12:03 -0000 1.2 +++ timestamp_format.c 12 Jan 2006 07:07:01 -0000 1.3 @@ -8,6 +8,8 @@ #include "gtkconv.h" #include "gtkplugin.h" +#include <time.h> + static GaimPluginPrefFrame * get_plugin_pref_frame(GaimPlugin *plugin) { @@ -62,7 +64,7 @@ static char *timestamp_cb_common(GaimCon if (!strcmp(dates, "always") || (gaim_conversation_get_type(conv) == GAIM_CONV_TYPE_CHAT && !strcmp(dates, "chats")) || - (time(NULL) > (mktime(tm) + 20*60))) + (time(NULL) > (mktime((struct tm *)tm) + 20*60))) { if (force) strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", tm); |