summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 23:54:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 23:54:22 +0000
commitf0d3b9278ffd7fd7d9029eb027bfebc763db5915 (patch)
treef1b1203e439e31fe20b773795b7a2c9f769f9124 /usr.bin
parent13737e747342bb42ce06447ef7dd3b7cd9aaa9aa (diff)
remove unused variable
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/patch/patch.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 7b754871ba9..e624893b477 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: patch.c,v 1.41 2004/07/09 19:13:46 otto Exp $ */
+/* $OpenBSD: patch.c,v 1.42 2004/09/14 23:54:21 deraadt Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -27,7 +27,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: patch.c,v 1.41 2004/07/09 19:13:46 otto Exp $";
+static const char rcsid[] = "$OpenBSD: patch.c,v 1.42 2004/09/14 23:54:21 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -146,7 +146,7 @@ static char end_defined[128];
int
main(int argc, char *argv[])
{
- int error = 0, hunk, failed, patch_seen = 0, i, fd;
+ int error = 0, hunk, failed, i, fd;
LINENUM where = 0, newwhere, fuzz, mymaxfuzz;
const char *tmpdir;
char *v;
@@ -210,7 +210,6 @@ main(int argc, char *argv[])
reinitialize_almost_everything()) {
/* for each patch in patch file */
- patch_seen = true;
warn_on_invalid_line = true;
if (outname == NULL)