projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
speedup by pitching the "compacting" realloc, which loses with new malloc
[unix-history]
/
usr
/
src
/
usr.bin
/
diff
/
diff
/
diffreg.c
diff --git
a/usr/src/usr.bin/diff/diff/diffreg.c
b/usr/src/usr.bin/diff/diff/diffreg.c
index
780caf6
..
fd4e873
100644
(file)
--- a/
usr/src/usr.bin/diff/diff/diffreg.c
+++ b/
usr/src/usr.bin/diff/diff/diffreg.c
@@
-1,4
+1,4
@@
-static char sccsid[] = "@(#)diffreg.c 4.
8
%G%";
+static char sccsid[] = "@(#)diffreg.c 4.
9
%G%";
#include "diff.h"
/*
#include "diff.h"
/*
@@
-108,7
+108,6
@@
diffreg()
perror(diffh);
done();
}
perror(diffh);
done();
}
- dummy = malloc(1);
if ((stb1.st_mode & S_IFMT) == S_IFDIR)
file1 = splice(file1, file2);
else if ((stb2.st_mode & S_IFMT) == S_IFDIR)
if ((stb1.st_mode & S_IFMT) == S_IFDIR)
file1 = splice(file1, file2);
else if ((stb2.st_mode & S_IFMT) == S_IFDIR)