diff options
Diffstat (limited to 'src/forget.c')
-rw-r--r-- | src/forget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/forget.c b/src/forget.c index befcf3f..1983f2f 100644 --- a/src/forget.c +++ b/src/forget.c @@ -156,7 +156,7 @@ finish: } int forget(struct syrep_db_context *c, struct syrep_db_context *target) { - uint32_t t; + time_t t; time_t now, limit; assert(c && target); @@ -166,7 +166,7 @@ int forget(struct syrep_db_context *c, struct syrep_db_context *target) { return -1; } - t = args.remember_arg*24*60*60; + t = (time_t) args.remember_arg*24*60*60; time(&now); limit = t > now ? 0 : now-t; |