diff options
-rw-r--r-- | cras.c | 2 | ||||
-rw-r--r-- | tasklst.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -89,7 +89,7 @@ read_crasfile(TaskLst *tasks, const char *crasfile) if (read_stat < 0) die("Parsing error: task file corrupted."); - if (tasklst_expired(*tasks) == 0) + if (tasklst_expired(*tasks) > 0) die("Current task file expired: Set a new one!"); } @@ -44,7 +44,7 @@ tasklst_set_expiration(TaskLst *tasks) int tasklst_expired(TaskLst tasks) { - return ((time(NULL) - tasks.expiry) > TASK_LST_EXPIRY) ? 0 : -1; + return (time(NULL) > tasks.expiry) ? 1 : 0; } int |