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 /editors/vi.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 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index b961ca5b8..01d45e50e 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -2230,8 +2230,7 @@ static char readit(void) // read (maybe cursor) key from stdin | |||
2230 | {"[13~", VI_K_FUN3}, // Function Key F3 | 2230 | {"[13~", VI_K_FUN3}, // Function Key F3 |
2231 | {"[14~", VI_K_FUN4}, // Function Key F4 | 2231 | {"[14~", VI_K_FUN4}, // Function Key F4 |
2232 | }; | 2232 | }; |
2233 | 2233 | enum { ESCCMDS_COUNT = ARRAY_SIZE(esccmds) }; | |
2234 | #define ESCCMDS_COUNT (sizeof(esccmds)/sizeof(struct esc_cmds)) | ||
2235 | 2234 | ||
2236 | alarm(0); // turn alarm OFF while we wait for input | 2235 | alarm(0); // turn alarm OFF while we wait for input |
2237 | fflush(stdout); | 2236 | fflush(stdout); |