$OpenBSD: patch-base_src_libdiff_diff2_c,v 1.1 2003/05/23 13:22:14 todd Exp $
--- base/src/libdiff/diff2.c.orig	Sat Mar 29 16:15:25 2003
+++ base/src/libdiff/diff2.c	Thu May 22 17:46:42 2003
@@ -50,7 +50,7 @@ diff_extract_lines(Buffer *buf)
 
     while((nl = strnchr(bc.ptr, (size_t) bc.len, '\n'))) {
       ocmoff_t lineLen = nl - bc.ptr;
-      DiffLine *dl = GC_MALLOC(sizeof(DiffLine));
+      DiffLine *dl = malloc(sizeof(DiffLine));
 
       curHash = psum_incremental(curHash, bc.ptr, lineLen);
 
@@ -59,7 +59,7 @@ diff_extract_lines(Buffer *buf)
       dl->base = lastLineStart;
       dl->bound = pos + lineLen;
       {
-	char *lineBuf = GC_MALLOC_ATOMIC(lineLen + 1);
+	char *lineBuf = malloc(lineLen + 1);
 	lineBuf[lineLen] = 0;
 	buffer_read(buf, lineBuf, dl->base, dl->bound - dl->base);
 	dl->content = lineBuf;
@@ -86,7 +86,7 @@ diff_extract_lines(Buffer *buf)
   /* Deal with residual line that may not have been newline
      terminated, if any: */
   if (lastLineStart != end) {
-    DiffLine *dl = GC_MALLOC(sizeof(DiffLine));
+    DiffLine *dl = malloc(sizeof(DiffLine));
     ocmoff_t lineLen = end - lastLineStart;
 
     dl->lineNo = line++;
@@ -94,7 +94,7 @@ diff_extract_lines(Buffer *buf)
     dl->base = lastLineStart;
     dl->bound = end;
     {
-      char *lineBuf = GC_MALLOC_ATOMIC(lineLen + 1);
+      char *lineBuf = malloc(lineLen + 1);
       lineBuf[lineLen] = 0;
       buffer_read(buf, lineBuf, dl->base, dl->bound - dl->base);
       dl->content = lineBuf;
@@ -214,10 +214,10 @@ calc_ses_len(DiffRegion *a, DiffRegion *
   long MAX = M+N;		/* search limit */
   long D;
 
-  long *Vf_base = GC_MALLOC_ATOMIC(MAX*2 + 1);
+  long *Vf_base = malloc(MAX*2 + 1);
   long *Vf = Vf_base + MAX;
 
-  long *Vb_base = GC_MALLOC_ATOMIC(MAX*2 + 1);
+  long *Vb_base = malloc(MAX*2 + 1);
   long *Vb = Vb_base + MAX;
 
   long delta = N - M;
@@ -295,7 +295,7 @@ calc_ses_len(DiffRegion *a, DiffRegion *
 
   /* V is a vector indexed from [-MAX..MAX}. Keep Vbase alive so that
      the GC algorithm won't loose track of it. */
-  long *Vbase = GC_MALLOC_ATOMIC(MAX*2 + 1);
+  long *Vbase = malloc(MAX*2 + 1);
   long *V = Vbase + MAX;
 
   V[1] = 0;
