summaryrefslogtreecommitdiff
path: root/bin/sh/memalloc.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-02-18 02:08:20 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-02-18 02:08:20 +0000
commitb228ca4dea9e65047166b9a76474b9d16df4e9e9 (patch)
tree8b676d0c71b3564f75c0c805d51f9274dc33dac5 /bin/sh/memalloc.c
parent6cf217b22c059d7141d70191afc8b2b5fdc8a642 (diff)
downloadsrc-test2-b228ca4dea9e65047166b9a76474b9d16df4e9e9.tar.gz
src-test2-b228ca4dea9e65047166b9a76474b9d16df4e9e9.zip
Notes
Diffstat (limited to 'bin/sh/memalloc.c')
-rw-r--r--bin/sh/memalloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/sh/memalloc.c b/bin/sh/memalloc.c
index c3e5fcaecf7e..a50d6617debc 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;
}