diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-06-25 10:55:35 +0000 |
commit | 80b8b39899a09c7516920cda5fd343b3086d4824 (patch) | |
tree | aa9903fd6b64d19c5f640fa302272d85c92b204e /shell/lash.c | |
parent | 1399282b47bb218132a554cbe5b2b0ce4dcc055f (diff) | |
download | busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.gz busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.tar.bz2 busybox-w32-80b8b39899a09c7516920cda5fd343b3086d4824.zip |
Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>)
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c index 4e8b23776..e5c7ef670 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -146,8 +146,8 @@ static const struct built_in_command bltins[] = { | |||
146 | /* to do: add ulimit */ | 146 | /* to do: add ulimit */ |
147 | }; | 147 | }; |
148 | 148 | ||
149 | #define VEC_SIZE(v) (sizeof(v)/sizeof(v[0])) | 149 | |
150 | #define VEC_LAST(v) v[VEC_SIZE(v)-1] | 150 | #define VEC_LAST(v) v[ARRAY_SIZE(v)-1] |
151 | 151 | ||
152 | 152 | ||
153 | static int shell_context; /* Type prompt trigger (PS1 or PS2) */ | 153 | static int shell_context; /* Type prompt trigger (PS1 or PS2) */ |