speedup by pitching the "compacting" realloc, which loses with new malloc
[unix-history] / usr / src / usr.bin / diff / diff / diffreg.c
index 780caf6..fd4e873 100644 (file)
@@ -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)