diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-11-30 14:51:33 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-11-30 14:51:33 +0000 |
commit | 112043bbf35a2683ef36bbcb2416eec8f5b0359c (patch) | |
tree | db7686353a0c2457adb14ac343da12d4054a90cf /usr.bin | |
parent | 7f35ed860a93486617caacc35c284e82346370b7 (diff) |
Fold identical pledge cases, '#ifndef SMALL \n if (!resume)' equals 'else'
OK millert
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ftp/main.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 75d184e4115..93dd47a0b83 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.141 2023/11/22 02:20:54 kn Exp $ */ +/* $OpenBSD: main.c,v 1.142 2023/11/30 14:51:32 kn Exp $ */ /* $NetBSD: main.c,v 1.24 1997/08/18 10:20:26 lukem Exp $ */ /* @@ -616,13 +616,6 @@ main(volatile int argc, char *argv[]) if (argc > 0) { if (isurl(argv[0])) { if (pipeout) { -#ifndef SMALL - if (!resume) { - if (pledge("stdio rpath dns tty inet fattr", - NULL) == -1) - err(1, "pledge"); - } else -#endif /* !SMALL */ if (pledge("stdio rpath dns tty inet fattr", NULL) == -1) err(1, "pledge"); |