svn commit: trunk/busybox/editors

vda at busybox.net vda at busybox.net
Mon Mar 24 15:04:25 UTC 2008


Author: vda
Date: 2008-03-24 08:04:24 -0700 (Mon, 24 Mar 2008)
New Revision: 21468

Log:
diff: make a few variables local

function                                             old     new   delta
diffreg                                             1844    1823     -21



Modified:
   trunk/busybox/editors/diff.c


Changeset:
Modified: trunk/busybox/editors/diff.c
===================================================================
--- trunk/busybox/editors/diff.c	2008-03-24 14:44:59 UTC (rev 21467)
+++ trunk/busybox/editors/diff.c	2008-03-24 15:04:24 UTC (rev 21468)
@@ -106,9 +106,6 @@
 	const char *label2;
 	struct line *file[2];
 	int *J;          /* will be overlaid on class */
-	int *class;      /* will be overlaid on file[0] */
-	int *klist;      /* will be overlaid on file[0] after class */
-	int *member;     /* will be overlaid on file[1] */
 	int clen;
 	int len[2];
 	int pref, suff;  /* length of prefix and suffix */
@@ -136,9 +133,6 @@
 #define label2             (G.label2            )
 #define file               (G.file              )
 #define J                  (G.J                 )
-#define class              (G.class             )
-#define klist              (G.klist             )
-#define member             (G.member            )
 #define clen               (G.clen              )
 #define len                (G.len               )
 #define pref               (G.pref              )
@@ -999,6 +993,9 @@
  * are not both DIRectories. */
 static unsigned diffreg(char *file1, char *file2, int flags)
 {
+	int *member;     /* will be overlaid on file[1] */
+	int *class;      /* will be overlaid on file[0] */
+	int *klist;      /* will be overlaid on file[0] after class */
 	FILE *f1;
 	FILE *f2;
 	unsigned rval;




More information about the busybox-cvs mailing list