summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_atom.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sfeed_atom.c b/sfeed_atom.c
index 2626b6c..8935db5 100644
--- 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");