Revision 3386 libsylph/folder.c

View differences:

folder.c
1634 1634
#endif
1635 1635
			path = attr->value;
1636 1636
		} else if (!strcmp(attr->name, "mtime"))
1637
			mtime = strtoull(attr->value, NULL, 10);
1637
			mtime = strtoll(attr->value, NULL, 10);
1638 1638
		else if (!strcmp(attr->name, "new"))
1639 1639
			new = atoi(attr->value);
1640 1640
		else if (!strcmp(attr->name, "unread"))
......
1945 1945
		}
1946 1946

  
1947 1947
		fprintf(fp,
1948
			" mtime=\"%llu\" new=\"%d\" unread=\"%d\" total=\"%d\"",
1949
			(guint64)item->mtime, item->new, item->unread, item->total);
1948
			" mtime=\"%lld\" new=\"%d\" unread=\"%d\" total=\"%d\"",
1949
			(gint64)item->mtime, item->new, item->unread, item->total);
1950 1950

  
1951 1951
		if (item->account)
1952 1952
			fprintf(fp, " account_id=\"%d\"",

Also available in: Unified diff