diff options
author | Denis Vlasenko | 2007-01-22 14:12:08 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-22 14:12:08 +0000 |
commit | 703e20235aa0624d3ff4335c1e86edaa6e21efe2 (patch) | |
tree | 49e8451efad93b75c0be74ee553d3b3f8c04a25d /libbb/lineedit.c | |
parent | 6cd2d2bcba37a13d0d73326dd7bca64bbccce4f8 (diff) | |
download | busybox-703e20235aa0624d3ff4335c1e86edaa6e21efe2.zip busybox-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.gz |
cleanups: unnecessary casts, unified const_1, eliminate cross-.c file
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED",
removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 2c849eb..08dab26 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -1254,8 +1254,6 @@ static void win_changed(int nsig) int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) { - static const int null_flags; - int lastWasTab = FALSE; unsigned int ic; unsigned char c; @@ -1270,7 +1268,7 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t maxsize = BUFSIZ; /* With null flags, no other fields are ever used */ - state = st ? st : (line_input_t*) &null_flags; + state = st ? st : (line_input_t*) &const_int_0; if (state->flags & SAVE_HISTORY) load_history(state->hist_file); |