sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit d95499b2d8e777fcb82fd3637044c3e70118a06b
parent 04b832539cd5b5392c56ef238ec9b42b689de3ae
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  8 Jan 2021 19:38:58 +0100

sfeed_atom: code-style: use conditional with pledge, like the other tools

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

diff --git a/sfeed_atom.c b/sfeed_atom.c @@ -111,13 +111,8 @@ main(int argc, char *argv[]) char *name; int i; - if (argc == 1) { - if (pledge("stdio", NULL) == -1) - err(1, "pledge"); - } else { - if (pledge("stdio rpath", NULL) == -1) - err(1, "pledge"); - } + if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1) + err(1, "pledge"); if ((now = time(NULL)) == -1) err(1, "time");