sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit 447f3133de490309be7a36875f03743ad43fb0d4
parent ea9055ef080dccebf5cd484009d3714cb284424f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 11 Jul 2020 13:10:51 +0200

pipeitem: simplification

Diffstat:
Msfeed_curses.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -525,11 +525,8 @@ pipeitem(const char *cmd, struct item *item, int wantoutput) } errno = 0; - if (!(fp = popen(cmd, "w"))) { - fputs("popen: ", stderr); - perror(NULL); - _exit(1); - } + if (!(fp = popen(cmd, "w"))) + err(1, "popen"); for (i = 0; i < FieldLast; i++) { if (i) fputc('\t', fp);