Revision 3386 libsylph/procheader.c

View differences:

procheader.c
873 873
	return -1;
874 874
}
875 875

  
876
time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
876
stime_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
877 877
{
878 878
	static gchar monthstr[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
879 879
	gchar weekday[11];
......
951 951
	return timer;
952 952
}
953 953

  
954
void procheader_date_get_localtime(gchar *dest, gint len, const time_t timer)
954
void procheader_date_get_localtime(gchar *dest, gint len, const stime_t timer)
955 955
{
956
	time_t timer_ = timer;
956 957
	struct tm *lt;
957 958
	gchar *default_format = "%y/%m/%d(%a) %H:%M";
958 959
	gchar *buf;
959 960
	gchar tmp[BUFFSIZE];
960 961

  
961
	lt = localtime(&timer);
962
	lt = localtime(&timer_);
962 963
	if (!lt) {
963 964
		g_warning("can't get localtime of %ld\n", timer);
964 965
		dest[0] = '\0';

Also available in: Unified diff