summaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-22 05:45:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-22 05:45:29 +0000
commit5e8a6177c055d4dd1ca8ae245a5ef3e946d9642f (patch)
tree617311af81a9e114f9f22ff9bbe1dcf122219b84 /usr.bin/patch/patch.c
parent60e1b12fa81aba493d57be4b0633f029018d923d (diff)
Start of -Wall and cleaning up icky bits.
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r--usr.bin/patch/patch.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 2c438db0789..b1810671167 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: patch.c,v 1.9 1997/01/17 07:13:04 millert Exp $ */
+/* $OpenBSD: patch.c,v 1.10 1997/09/22 05:45:27 millert Exp $ */
/* patch - a program to apply diffs to original files
*
@@ -9,7 +9,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: patch.c,v 1.9 1997/01/17 07:13:04 millert Exp $";
+static char rcsid[] = "$OpenBSD: patch.c,v 1.10 1997/09/22 05:45:27 millert Exp $";
#endif /* not lint */
#include "INTERN.h"
@@ -36,7 +36,11 @@ void dump_line();
bool patch_match();
bool similar();
void re_input();
+#ifdef __GNUC__
+void my_exit() __attribute__((noreturn));
+#else
void my_exit();
+#endif
/* TRUE if -E was specified on command line. */
static int remove_empty_files = FALSE;
@@ -327,6 +331,7 @@ char **argv;
set_signals(1);
}
my_exit(failtotal);
+ /* NOTREACHED */
}
/* Prepare to find the next patch to do in the patch file. */