]> thyrsus.com Git - comparator.git/commitdiff
Better member name.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Sep 2003 08:03:10 +0000 (08:03 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Sep 2003 08:03:10 +0000 (08:03 +0000)
shredtree.c

index 2842de50a2dc51a615b174e7c24a5963654f9b65..a2fd18b69f5fb2f7fcc630264c5289b2d25f92eb 100644 (file)
@@ -93,7 +93,7 @@ static int normalize(char *buf)
 typedef struct
 {
     char       *line;
-    int        number;
+    int        start;
 }
 shred;
 
@@ -120,7 +120,7 @@ static struct hash_t emit_chunk(shred *display, int linecount)
     for (i = shredsize - 1; i >= 0; i--)
        if (display[i].line)
            firstline = i;
-    firstline = display[firstline].number;
+    firstline = display[firstline].start;
     out.start = firstline;
     out.end = linecount;
 
@@ -155,7 +155,7 @@ void shredfile(const char *file,
 
        /* create new shred */
        display[shredsize-1].line = strdup(buf);
-       display[shredsize-1].number = linecount;
+       display[shredsize-1].start = linecount;
 
        /* flush completed chunk */
        if (accepted >= shredsize)