diff options
Diffstat (limited to 'sfeed_plain.c')
-rw-r--r-- | sfeed_plain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c index f3ffcf7..4942d92 100644 --- a/sfeed_plain.c +++ b/sfeed_plain.c @@ -40,8 +40,10 @@ main(int argc, char *argv[]) char *name; int i; + if ((comparetime = time(NULL)) == -1) + err(1, "time"); /* 1 day is old news */ - comparetime = time(NULL) - (3600 * 24); + comparetime -= 86400; if (argc == 1) { printfeed(stdin, ""); |