From 24934515dc3177a92129ed084f2bffab36eb97aa Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 10 Sep 2003 08:03:10 +0000 Subject: [PATCH] Better member name. --- shredtree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shredtree.c b/shredtree.c index 2842de5..a2fd18b 100644 --- a/shredtree.c +++ b/shredtree.c @@ -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) -- 2.43.0