From 703e20235aa0624d3ff4335c1e86edaa6e21efe2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 22 Jan 2007 14:12:08 +0000 Subject: 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. --- libbb/lineedit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libbb/lineedit.c') diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 2c849eb74..08dab26f0 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); -- cgit v1.2.3