[git commit master] ash: trivial shrink by using smaller int
Denys Vlasenko
vda.linux at googlemail.com
Sat Oct 10 22:36:20 UTC 2009
commit: http://git.busybox.net/busybox/commit/?id=0e5e4eaf7bbfa5d71db1ea410f734c8458a2071e
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
copynode 197 196 -1
calcsize 127 126 -1
nodesize 54 27 -27
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-29) Total: -29 bytes
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/ash.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/shell/ash.c b/shell/ash.c
index 6ce6215..b0b8535 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -1164,7 +1164,7 @@ enum {
/* Most machines require the value returned from malloc to be aligned
* in some way. The following macro will get this right
* on many machines. */
- SHELL_SIZE = sizeof(union {int i; char *cp; double d; }) - 1,
+ SHELL_SIZE = sizeof(union { int i; char *cp; double d; }) - 1,
/* Minimum size of a block */
MINSIZE = SHELL_ALIGN(504),
};
@@ -7771,7 +7771,7 @@ static char *funcstring; /* block to allocate strings from */
#define EV_TESTED 02 /* exit status is checked; ignore -e flag */
#define EV_BACKCMD 04 /* command executing within back quotes */
-static const short nodesize[N_NUMBER] = {
+static const uint8_t nodesize[N_NUMBER] = {
[NCMD ] = SHELL_ALIGN(sizeof(struct ncmd)),
[NPIPE ] = SHELL_ALIGN(sizeof(struct npipe)),
[NREDIR ] = SHELL_ALIGN(sizeof(struct nredir)),
--
1.6.3.3
More information about the busybox-cvs
mailing list