diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c index c2b9e94b6..a0994aec0 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -301,7 +301,7 @@ static int get_address(const char *my_str, int *linenum, regex_t ** regex) | |||
301 | } | 301 | } |
302 | 302 | ||
303 | /* Grab a filename. Whitespace at start is skipped, then goes to EOL. */ | 303 | /* Grab a filename. Whitespace at start is skipped, then goes to EOL. */ |
304 | static int parse_file_cmd(sed_cmd_t *sed_cmd, const char *filecmdstr, char **retval) | 304 | static int parse_file_cmd(/*sed_cmd_t *sed_cmd,*/ const char *filecmdstr, char **retval) |
305 | { | 305 | { |
306 | int start = 0, idx, hack = 0; | 306 | int start = 0, idx, hack = 0; |
307 | 307 | ||
@@ -375,7 +375,7 @@ static int parse_subst_cmd(sed_cmd_t *sed_cmd, const char *substr) | |||
375 | case 'w': | 375 | case 'w': |
376 | { | 376 | { |
377 | char *temp; | 377 | char *temp; |
378 | idx += parse_file_cmd(sed_cmd, substr+idx, &temp); | 378 | idx += parse_file_cmd(/*sed_cmd,*/ substr+idx, &temp); |
379 | break; | 379 | break; |
380 | } | 380 | } |
381 | /* Ignore case (gnu exension) */ | 381 | /* Ignore case (gnu exension) */ |
@@ -436,7 +436,7 @@ static const char *parse_cmd_args(sed_cmd_t *sed_cmd, const char *cmdstr) | |||
436 | } else if (strchr("rw", sed_cmd->cmd)) { | 436 | } else if (strchr("rw", sed_cmd->cmd)) { |
437 | if (sed_cmd->end_line || sed_cmd->end_match) | 437 | if (sed_cmd->end_line || sed_cmd->end_match) |
438 | bb_error_msg_and_die("command only uses one address"); | 438 | bb_error_msg_and_die("command only uses one address"); |
439 | cmdstr += parse_file_cmd(sed_cmd, cmdstr, &sed_cmd->string); | 439 | cmdstr += parse_file_cmd(/*sed_cmd,*/ cmdstr, &sed_cmd->string); |
440 | if (sed_cmd->cmd == 'w') { | 440 | if (sed_cmd->cmd == 'w') { |
441 | sed_cmd->sw_file = xfopen(sed_cmd->string, "w"); | 441 | sed_cmd->sw_file = xfopen(sed_cmd->string, "w"); |
442 | sed_cmd->sw_last_char = '\n'; | 442 | sed_cmd->sw_last_char = '\n'; |