summaryrefslogtreecommitdiff
path: root/sfeed_plain.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_plain.c')
-rw-r--r--sfeed_plain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c
index df93a5a..45785e7 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -62,8 +62,8 @@ main(int argc, char *argv[])
if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
err(1, "pledge");
- if ((comparetime = time(NULL)) == -1)
- err(1, "time");
+ if ((comparetime = time(NULL)) == (time_t)-1)
+ errx(1, "time");
/* 1 day is old news */
comparetime -= 86400;