=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/diff/diffreg.c,v retrieving revision 1.7 retrieving revision 1.8 diff -c -r1.7 -r1.8 *** src/usr.bin/diff/diffreg.c 2003/06/25 03:39:23 1.7 --- src/usr.bin/diff/diffreg.c 2003/06/25 03:42:00 1.8 *************** *** 1,4 **** ! /* $OpenBSD: diffreg.c,v 1.7 2003/06/25 03:39:23 tedu Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. --- 1,4 ---- ! /* $OpenBSD: diffreg.c,v 1.8 2003/06/25 03:42:00 tedu Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. *************** *** 128,134 **** struct line { int serial; int value; ! } *file[2], line; int len[2]; struct line *sfile[2]; /* shortened by pruning common prefix and suffix */ --- 128,134 ---- struct line { int serial; int value; ! } *file[2]; int len[2]; struct line *sfile[2]; /* shortened by pruning common prefix and suffix */ *************** *** 400,408 **** int j, h; fseek(fd, 0, 0); ! p = talloc(3 * sizeof(line)); for (j = 0; (h = readhash(fd));) { ! p = ralloc(p, (++j + 3) * sizeof(line)); p[j].value = h; } len[i] = j; --- 400,408 ---- int j, h; fseek(fd, 0, 0); ! p = talloc(3 * sizeof(struct line)); for (j = 0; (h = readhash(fd));) { ! p = ralloc(p, (++j + 3) * sizeof(struct line)); p[j].value = h; } len[i] = j;