diff options
author | tjr <tjr@FreeBSD.org> | 2003-02-18 02:08:20 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-02-18 02:08:20 +0000 |
commit | 8ffc1f9506754450f927888992056a916df6e4b6 (patch) | |
tree | 8b676d0c71b3564f75c0c805d51f9274dc33dac5 /bin/sh/memalloc.c | |
parent | adf3acbf08eca304e79c77dc37dd58265125b51d (diff) | |
download | FreeBSD-src-8ffc1f9506754450f927888992056a916df6e4b6.zip FreeBSD-src-8ffc1f9506754450f927888992056a916df6e4b6.tar.gz |
Revert ALIGN change for the second and last time. I can't figure out
why this is breaking sparc64.
Diffstat (limited to 'bin/sh/memalloc.c')
-rw-r--r-- | bin/sh/memalloc.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <sys/param.h> - #include "shell.h" #include "output.h" #include "memalloc.h" #include "error.h" +#include "machdep.h" #include "mystring.h" #include "expand.h" #include <stdlib.h> @@ -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; } |