aboutsummaryrefslogtreecommitdiff
path: root/libsylph/folder.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-04-18 06:26:43 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-04-18 06:26:43 +0000
commit26b2f9567dc0bd7b70e6cc66eee800a1e0d89b73 (patch)
tree3eb93151b98eabb35e7c52b7ea6e6a79648227bd /libsylph/folder.c
parentd6433225cb188bace23a80686df3be09edaa6036 (diff)
wrapped time_t as stime_t. stime_t will be 32-bit on win32 for backward compatibility.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3386 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/folder.c')
-rw-r--r--libsylph/folder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsylph/folder.c b/libsylph/folder.c
index 0299fc5e..f188dba5 100644
--- a/libsylph/folder.c
+++ b/libsylph/folder.c
@@ -1634,7 +1634,7 @@ static gboolean folder_build_tree(GNode *node, gpointer data)
#endif
path = attr->value;
} else if (!strcmp(attr->name, "mtime"))
- mtime = strtoull(attr->value, NULL, 10);
+ mtime = strtoll(attr->value, NULL, 10);
else if (!strcmp(attr->name, "new"))
new = atoi(attr->value);
else if (!strcmp(attr->name, "unread"))
@@ -1945,8 +1945,8 @@ static void folder_write_list_recursive(GNode *node, gpointer data)
}
fprintf(fp,
- " mtime=\"%llu\" new=\"%d\" unread=\"%d\" total=\"%d\"",
- (guint64)item->mtime, item->new, item->unread, item->total);
+ " mtime=\"%lld\" new=\"%d\" unread=\"%d\" total=\"%d\"",
+ (gint64)item->mtime, item->new, item->unread, item->total);
if (item->account)
fprintf(fp, " account_id=\"%d\"",