summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-09-22 05:45:26 +0000
committermillert <millert@openbsd.org>1997-09-22 05:45:26 +0000
commit71eaa2b5019ddca8beb9154691db120fda984c3c (patch)
tree67435032c96b18ee5c5b24b6244cee5b7555dd80 /usr.bin/patch/patch.c
parentUse our own fnmatch(). (diff)
downloadwireguard-openbsd-71eaa2b5019ddca8beb9154691db120fda984c3c.tar.xz
wireguard-openbsd-71eaa2b5019ddca8beb9154691db120fda984c3c.zip
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. */