*/
#ifndef lint
-static char sccsid[] = "@(#)alloc.c 5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)alloc.c 5.11 (Berkeley) %G%";
#endif /* not lint */
/*
/* take 2k unless the block is bigger than that */
rnu = (bucket <= 8) ? 11 : bucket + 3;
nblks = 1 << (rnu - (bucket + 3)); /* how many blocks to get */
- if (rnu < bucket)
- rnu = bucket;
memtop = (char *) sbrk(1 << rnu); /* PWP */
op = (union overhead *) memtop;
memtop += 1 << rnu;
op->ov_next = (union overhead *) (((caddr_t) op) + siz);
op = (union overhead *) (((caddr_t) op) + siz);
}
+ op->ov_next = NULL;
}
#endif
-#ifdef sun
-int
-#else
void
-#endif
free(cp)
ptr_t cp;
{