summaryrefslogtreecommitdiffstats
path: root/tasklst.c
diff options
context:
space:
mode:
Diffstat (limited to 'tasklst.c')
-rw-r--r--tasklst.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasklst.c b/tasklst.c
index f19aa0c..4ef1afb 100644
--- a/tasklst.c
+++ b/tasklst.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -109,7 +110,7 @@ tasklst_write_to_file(FILE *fp, TaskLst tasks)
{
int i;
- fprintf(fp, "%zu\n", tasks.expiry);
+ fprintf(fp, "%" PRId64 "\n", tasks.expiry);
for (i = 0; i < TASK_LST_MAX_NUM; ++i) {
if (tasks.status[i] == TASK_VOID)