summaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-06-25 03:42:01 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-06-25 03:42:01 +0000
commit7b2d783969251405b33d4051ff8c6956f9b75381 (patch)
tree02fa6390fe261e0fe69fc68d91735af8ac5933c4 /usr.bin/diff/diffreg.c
parent7140f4a17ddb1505a5bbbf6fc46c2436474b27a4 (diff)
remove unused variable
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index ee001439391..a6c0003f3fa 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.7 2003/06/25 03:39:23 tedu Exp $ */
+/* $OpenBSD: diffreg.c,v 1.8 2003/06/25 03:42:00 tedu Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -128,7 +128,7 @@ struct cand {
struct line {
int serial;
int value;
-} *file[2], line;
+} *file[2];
int len[2];
struct line *sfile[2]; /* shortened by pruning common prefix and suffix */
@@ -400,9 +400,9 @@ prepare(int i, FILE *fd)
int j, h;
fseek(fd, 0, 0);
- p = talloc(3 * sizeof(line));
+ p = talloc(3 * sizeof(struct line));
for (j = 0; (h = readhash(fd));) {
- p = ralloc(p, (++j + 3) * sizeof(line));
+ p = ralloc(p, (++j + 3) * sizeof(struct line));
p[j].value = h;
}
len[i] = j;