diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-17 11:59:13 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-17 11:59:13 +0000 |
commit | 679212836a881b53382ea6bd811f38e00705d50d (patch) | |
tree | e5c349683a57c55b650eae77b1ca5ac40c94a175 /include | |
parent | 0f683f818cf087d580ba2edf7c096897bc28b95a (diff) | |
download | busybox-w32-679212836a881b53382ea6bd811f38e00705d50d.tar.gz busybox-w32-679212836a881b53382ea6bd811f38e00705d50d.tar.bz2 busybox-w32-679212836a881b53382ea6bd811f38e00705d50d.zip |
- fix segfault in nameif with mactab file
(by fixing and shrink config parser)
function old new delta
config_free_data - 37 +37
config_open 43 48 +5
pack_gzip 1658 1660 +2
nameif_main 527 525 -2
SynchronizeFile 629 623 -6
make_device 1184 1176 -8
config_close 31 18 -13
config_read 431 393 -38
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/5 up/down: 44/-67) Total: -23 bytes
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index c124b1a5e..aafdfa32c 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -995,7 +995,7 @@ typedef struct parser_t { | |||
995 | char *line, *data; | 995 | char *line, *data; |
996 | int lineno; | 996 | int lineno; |
997 | } parser_t; | 997 | } parser_t; |
998 | FILE* config_open(parser_t *parser, const char *filename) FAST_FUNC; | 998 | parser_t* config_open(const char *filename) FAST_FUNC; |
999 | /* TODO: add define magic to collapse ntokens/mintokens/comment into one int param */ | 999 | /* TODO: add define magic to collapse ntokens/mintokens/comment into one int param */ |
1000 | int config_read(parser_t *parser, char **tokens, int ntokens, int mintokens, const char *delims, char comment) FAST_FUNC; | 1000 | int config_read(parser_t *parser, char **tokens, int ntokens, int mintokens, const char *delims, char comment) FAST_FUNC; |
1001 | void config_close(parser_t *parser) FAST_FUNC; | 1001 | void config_close(parser_t *parser) FAST_FUNC; |