diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-22 14:12:08 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-22 14:12:08 +0000 |
commit | 703e20235aa0624d3ff4335c1e86edaa6e21efe2 (patch) | |
tree | 49e8451efad93b75c0be74ee553d3b3f8c04a25d /libbb/lineedit.c | |
parent | 6cd2d2bcba37a13d0d73326dd7bca64bbccce4f8 (diff) | |
download | busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.gz busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.tar.bz2 busybox-w32-703e20235aa0624d3ff4335c1e86edaa6e21efe2.zip |
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 2c849eb74..08dab26f0 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1254,8 +1254,6 @@ static void win_changed(int nsig) | |||
1254 | 1254 | ||
1255 | int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) | 1255 | int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *st) |
1256 | { | 1256 | { |
1257 | static const int null_flags; | ||
1258 | |||
1259 | int lastWasTab = FALSE; | 1257 | int lastWasTab = FALSE; |
1260 | unsigned int ic; | 1258 | unsigned int ic; |
1261 | unsigned char c; | 1259 | unsigned char c; |
@@ -1270,7 +1268,7 @@ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t | |||
1270 | maxsize = BUFSIZ; | 1268 | maxsize = BUFSIZ; |
1271 | 1269 | ||
1272 | /* With null flags, no other fields are ever used */ | 1270 | /* With null flags, no other fields are ever used */ |
1273 | state = st ? st : (line_input_t*) &null_flags; | 1271 | state = st ? st : (line_input_t*) &const_int_0; |
1274 | if (state->flags & SAVE_HISTORY) | 1272 | if (state->flags & SAVE_HISTORY) |
1275 | load_history(state->hist_file); | 1273 | load_history(state->hist_file); |
1276 | 1274 | ||