diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-24 15:04:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-24 15:04:24 +0000 |
commit | 73132b9c1204500239032f4e36602d41051d29c2 (patch) | |
tree | edda6abd7792bfa37050b831dafe111a43efe1db | |
parent | 04211fd2049435ee48ab69b116ea9f91914ef94b (diff) | |
download | busybox-w32-73132b9c1204500239032f4e36602d41051d29c2.tar.gz busybox-w32-73132b9c1204500239032f4e36602d41051d29c2.tar.bz2 busybox-w32-73132b9c1204500239032f4e36602d41051d29c2.zip |
diff: make a few variables local
function old new delta
diffreg 1844 1823 -21
-rw-r--r-- | editors/diff.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/editors/diff.c b/editors/diff.c index 47297ebb3..4886f6306 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -106,9 +106,6 @@ struct globals { | |||
106 | const char *label2; | 106 | const char *label2; |
107 | struct line *file[2]; | 107 | struct line *file[2]; |
108 | int *J; /* will be overlaid on class */ | 108 | int *J; /* will be overlaid on class */ |
109 | int *class; /* will be overlaid on file[0] */ | ||
110 | int *klist; /* will be overlaid on file[0] after class */ | ||
111 | int *member; /* will be overlaid on file[1] */ | ||
112 | int clen; | 109 | int clen; |
113 | int len[2]; | 110 | int len[2]; |
114 | int pref, suff; /* length of prefix and suffix */ | 111 | int pref, suff; /* length of prefix and suffix */ |
@@ -136,9 +133,6 @@ struct globals { | |||
136 | #define label2 (G.label2 ) | 133 | #define label2 (G.label2 ) |
137 | #define file (G.file ) | 134 | #define file (G.file ) |
138 | #define J (G.J ) | 135 | #define J (G.J ) |
139 | #define class (G.class ) | ||
140 | #define klist (G.klist ) | ||
141 | #define member (G.member ) | ||
142 | #define clen (G.clen ) | 136 | #define clen (G.clen ) |
143 | #define len (G.len ) | 137 | #define len (G.len ) |
144 | #define pref (G.pref ) | 138 | #define pref (G.pref ) |
@@ -999,6 +993,9 @@ static void output(char *file1, FILE *f1, char *file2, FILE *f2) | |||
999 | * are not both DIRectories. */ | 993 | * are not both DIRectories. */ |
1000 | static unsigned diffreg(char *file1, char *file2, int flags) | 994 | static unsigned diffreg(char *file1, char *file2, int flags) |
1001 | { | 995 | { |
996 | int *member; /* will be overlaid on file[1] */ | ||
997 | int *class; /* will be overlaid on file[0] */ | ||
998 | int *klist; /* will be overlaid on file[0] after class */ | ||
1002 | FILE *f1; | 999 | FILE *f1; |
1003 | FILE *f2; | 1000 | FILE *f2; |
1004 | unsigned rval; | 1001 | unsigned rval; |