aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2014-12-31 16:30:33 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2014-12-31 16:30:33 +0000
commitf718bedc4f28c4407e9b873a356c4d2cffbdfe36 (patch)
treea798636fbcee7d1c9a2031de6922d2fc762033b6 /usr.bin/patch
parent490341147e68c48a9750978e8e6cb0f0584a6737 (diff)
Notes
Diffstat (limited to 'usr.bin/patch')
-rw-r--r--usr.bin/patch/patch.c2
-rw-r--r--usr.bin/patch/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 987bddc60046..22f302741aea 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -634,7 +634,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(EXIT_FAILURE);
}
/*
diff --git a/usr.bin/patch/util.c b/usr.bin/patch/util.c
index 6d696b0f923b..27ee1aebb816 100644
--- a/usr.bin/patch/util.c
+++ b/usr.bin/patch/util.c
@@ -428,7 +428,7 @@ checked_in(char *file)
void
version(void)
{
- fprintf(stderr, "patch 2.0-12u10 FreeBSD\n");
+ printf("patch 2.0-12u10 FreeBSD\n");
my_exit(EXIT_SUCCESS);
}