summaryrefslogtreecommitdiffstats
path: root/tasklst.c
diff options
context:
space:
mode:
authorAriadna Vigo <arivigodr@gmail.com>2020-06-20 23:44:01 +0200
committerAriadna Vigo <arivigodr@gmail.com>2020-06-20 23:44:01 +0200
commit77d91a57f896a14746481dae1ddbf1fc02e13737 (patch)
tree92f23434327e57a2ccb0c5077556be831e452843 /tasklst.c
parent7cd1d7cfe5c24c25b01e9ee3d528da01d37b174e (diff)
Fixed expiration mechanism
Diffstat (limited to 'tasklst.c')
-rw-r--r--tasklst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasklst.c b/tasklst.c
index 84d674e..f19aa0c 100644
--- a/tasklst.c
+++ b/tasklst.c
@@ -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