From 8ffc1f9506754450f927888992056a916df6e4b6 Mon Sep 17 00:00:00 2001 From: tjr Date: Tue, 18 Feb 2003 02:08:20 +0000 Subject: Revert ALIGN change for the second and last time. I can't figure out why this is breaking sparc64. --- bin/sh/memalloc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin/sh/memalloc.c') diff --git a/bin/sh/memalloc.c b/bin/sh/memalloc.c index c3e5fca..a50d661 100644 --- a/bin/sh/memalloc.c +++ b/bin/sh/memalloc.c @@ -42,12 +42,11 @@ static char sccsid[] = "@(#)memalloc.c 8.3 (Berkeley) 5/4/95"; #include __FBSDID("$FreeBSD$"); -#include - #include "shell.h" #include "output.h" #include "memalloc.h" #include "error.h" +#include "machdep.h" #include "mystring.h" #include "expand.h" #include @@ -140,8 +139,8 @@ stalloc(int nbytes) sp = ckmalloc(sizeof(struct stack_block) - MINSIZE + blocksize); sp->prev = stackp; - stacknxt = (char *)ALIGN(sp->space); - stacknleft = blocksize - (stacknxt - sp->space); + stacknxt = sp->space; + stacknleft = blocksize; stackp = sp; INTON; } -- cgit v1.1