summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-06-26 22:04:45 +0000
committermillert <millert@openbsd.org>2003-06-26 22:04:45 +0000
commit90f56ad89a9a2865b738e2fb968a31f24e4f9aa7 (patch)
tree4862bca2cbfdd44d767642134646b99aeb1c2827 /usr.bin/diff/diff.c
parentmore proto fixes (diff)
downloadwireguard-openbsd-90f56ad89a9a2865b738e2fb968a31f24e4f9aa7.tar.xz
wireguard-openbsd-90f56ad89a9a2865b738e2fb968a31f24e4f9aa7.zip
Remove cruft; We don't have the -I, -1 or -2 options anymore so we don't
need the associated scaffolding. tedu@ OK
Diffstat (limited to 'usr.bin/diff/diff.c')
-rw-r--r--usr.bin/diff/diff.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
index 8448b7ee8a0..63fb2e40abe 100644
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.16 2003/06/26 21:03:08 millert Exp $ */
+/* $OpenBSD: diff.c,v 1.17 2003/06/26 22:04:45 millert Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -62,11 +62,8 @@ int lflag; /* long output format with header */
int rflag; /* recursively trace directories */
int sflag; /* announce files which are same */
char *start; /* do file only if name >= this */
-/* Variables for -I D_IFDEF option. */
-int wantelses; /* -E */
-char *ifdef1; /* String for -1 */
-char *ifdef2; /* String for -2 */
-char *endifname; /* What we will print on next #endif */
+/* Variables for -D D_IFDEF option. */
+char *ifdefname; /* What we will print for #ifdef/#endif */
int inifdef;
/* Variables for -c and -u context option. */
int context; /* lines of context to be printed */
@@ -97,8 +94,6 @@ main(int argc, char **argv)
{
int ch;
- ifdef1 = "FILE1";
- ifdef2 = "FILE2";
status = 2;
diffargv = argv;
@@ -121,11 +116,8 @@ main(int argc, char **argv)
context = 3;
break;
case 'D':
- /* -Dfoo = -E -1 -2foo */
opt = D_IFDEF;
- ifdef1 = "";
- ifdef2 = optarg;
- wantelses++;
+ ifdefname = optarg;
break;
case 'e':
opt = D_EDIT;