summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/alloc.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-08 15:16:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-12-08 15:16:00 +0000
commit92f9d347b16f71e6f70d404ed02486584fa35d37 (patch)
treefc714075a9c2983138b748a37606718605bb2c85 /sys/lib/libsa/alloc.c
parent7b12c8734d7e8c4ce180c40d12c579291d401a9e (diff)
Merge to NetBSD 961207
Diffstat (limited to 'sys/lib/libsa/alloc.c')
-rw-r--r--sys/lib/libsa/alloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libsa/alloc.c b/sys/lib/libsa/alloc.c
index eb6b4e9cbe6..785b4a77d73 100644
--- a/sys/lib/libsa/alloc.c
+++ b/sys/lib/libsa/alloc.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: alloc.c,v 1.2 1996/09/23 14:18:46 mickey Exp $ */
-/* $NetBSD: alloc.c,v 1.3 1994/10/26 05:44:34 cgd Exp $ */
+/* $OpenBSD: alloc.c,v 1.3 1996/12/08 15:15:45 niklas Exp $ */
+/* $NetBSD: alloc.c,v 1.4 1996/09/26 23:15:00 cgd Exp $ */
/*-
* Copyright (c) 1993
@@ -90,8 +90,8 @@ alloc(size)
f = f->next;
}
if (f == (struct fl *)0) {
- f = (struct fl *)top;
- top += ALIGN(size);
+ f = (struct fl *)ALIGN(top);
+ top = (char *)f + ALIGN(size);
} else
*prev = f->next;
return ((void *)f);