sfeed_frames_content: use $SFEED_NEW_AGE - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9ae7ac3d5dd71d197dc1ad9e4d3821c72e3f16f4
(DIR) parent 6b4ba24149b5d51c6c07d5019d13087032491dc8
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 7 May 2023 19:06:32 +0200
sfeed_frames_content: use $SFEED_NEW_AGE
Diffstat:
M sfeed/sfeed_frames_content.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/sfeed/sfeed_frames_content.c b/sfeed/sfeed_frames_content.c
@@ -250,10 +250,8 @@ main(int argc, char *argv[])
if (!(feeds = calloc(argc, sizeof(struct feed *))))
err(1, "calloc");
- if ((comparetime = time(NULL)) == -1)
- errx(1, "time");
- /* 1 day is old news */
- comparetime -= 86400;
+ if ((comparetime = getcomparetime()) == -1)
+ errx(1, "getcomparetime");
/* write main index page */
if (!(fpindex = fopen("index.html", "wb")))