aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procheader.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph/procheader.c')
-rw-r--r--libsylph/procheader.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libsylph/procheader.c b/libsylph/procheader.c
index 93ef99e7..96cca15c 100644
--- a/libsylph/procheader.c
+++ b/libsylph/procheader.c
@@ -873,7 +873,7 @@ static gint procheader_scan_date_string(const gchar *str,
return -1;
}
-time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
+stime_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
{
static gchar monthstr[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
gchar weekday[11];
@@ -951,14 +951,15 @@ time_t procheader_date_parse(gchar *dest, const gchar *src, gint len)
return timer;
}
-void procheader_date_get_localtime(gchar *dest, gint len, const time_t timer)
+void procheader_date_get_localtime(gchar *dest, gint len, const stime_t timer)
{
+ time_t timer_ = timer;
struct tm *lt;
gchar *default_format = "%y/%m/%d(%a) %H:%M";
gchar *buf;
gchar tmp[BUFFSIZE];
- lt = localtime(&timer);
+ lt = localtime(&timer_);
if (!lt) {
g_warning("can't get localtime of %ld\n", timer);
dest[0] = '\0';