summaryrefslogtreecommitdiffstats
path: root/bin/sh/memalloc.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-01-09 22:47:58 +0000
committerjilles <jilles@FreeBSD.org>2011-01-09 22:47:58 +0000
commitebbca2a885e113d724fb0d1239b047d0f8a6623d (patch)
treee929357aa197edb94c922e9cb54864a330f718c6 /bin/sh/memalloc.c
parent4813d862787d48502e1389794adc933b8ab4cbda (diff)
downloadFreeBSD-src-ebbca2a885e113d724fb0d1239b047d0f8a6623d.zip
FreeBSD-src-ebbca2a885e113d724fb0d1239b047d0f8a6623d.tar.gz
sh: Follow-up to r216743, grabstackblock() can be replaced with stalloc().
grabstackblock() was used only once (but it is a very often executed piece of code).
Diffstat (limited to 'bin/sh/memalloc.c')
-rw-r--r--bin/sh/memalloc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bin/sh/memalloc.c b/bin/sh/memalloc.c
index 3ee104c..bc567d0 100644
--- a/bin/sh/memalloc.c
+++ b/bin/sh/memalloc.c
@@ -277,16 +277,6 @@ growstackblock(int min)
-void
-grabstackblock(int len)
-{
- len = ALIGN(len);
- stacknxt += len;
- stacknleft -= len;
-}
-
-
-
/*
* The following routines are somewhat easier to use that the above.
* The user declares a variable of type STACKSTR, which may be declared
OpenPOWER on IntegriCloud