summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorgsoares <gsoares@openbsd.org>2016-01-04 14:09:46 +0000
committergsoares <gsoares@openbsd.org>2016-01-04 14:09:46 +0000
commitc3001b4fbf3e656981b6a00bf71638844d869c31 (patch)
tree40218fc79dbeb8f63166f84b3b37f04a87ed17d0 /usr.bin/patch/patch.c
parentAdd initial support for 11n mode to the iwn(4) driver. (diff)
downloadwireguard-openbsd-c3001b4fbf3e656981b6a00bf71638844d869c31.tar.xz
wireguard-openbsd-c3001b4fbf3e656981b6a00bf71638844d869c31.zip
usage() should exit 2 here, not EXIT_SUCCESS
ok tb@
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r--usr.bin/patch/patch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 2011fbd42f8..8f8f8cd4e49 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: patch.c,v 1.62 2015/12/29 19:04:46 gsoares Exp $ */
+/* $OpenBSD: patch.c,v 1.63 2016/01/04 14:09:46 gsoares Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -618,7 +618,7 @@ usage(void)
" [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]\n"
" [--posix] [origfile [patchfile]]\n"
" patch <patchfile\n");
- my_exit(EXIT_SUCCESS);
+ my_exit(2);
}
/*