diff options
| author | Eric Andersen <andersen@codepoet.org> | 2002-07-11 11:11:56 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2002-07-11 11:11:56 +0000 |
| commit | 2276d836398564a90f5ff237e63ca3104ae509f0 (patch) | |
| tree | b516e1554a434ba539ed5318c0b3736940c1dd99 /editors | |
| parent | cafc10323099befd1e45bb1d212a511dcbb92b11 (diff) | |
| download | busybox-w32-2276d836398564a90f5ff237e63ca3104ae509f0.tar.gz busybox-w32-2276d836398564a90f5ff237e63ca3104ae509f0.tar.bz2 busybox-w32-2276d836398564a90f5ff237e63ca3104ae509f0.zip | |
Fixup warnings and undefined operations that show up in gcc-3.1
-Erik
Diffstat (limited to 'editors')
| -rw-r--r-- | editors/sed.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index 93faf00c2..84aea9b0a 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
| @@ -401,8 +401,10 @@ static char *parse_cmd_str(struct sed_cmd * const sed_cmd, const char *const cmd | |||
| 401 | idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match); | 401 | idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match); |
| 402 | 402 | ||
| 403 | /* second part (if present) will begin with a comma */ | 403 | /* second part (if present) will begin with a comma */ |
| 404 | if (cmdstr[idx] == ',') | 404 | if (cmdstr[idx] == ',') { |
| 405 | idx += get_address(sed_cmd, &cmdstr[++idx], &sed_cmd->end_line, &sed_cmd->end_match); | 405 | idx++; |
| 406 | idx += get_address(sed_cmd, &cmdstr[idx], &sed_cmd->end_line, &sed_cmd->end_match); | ||
| 407 | } | ||
| 406 | 408 | ||
| 407 | /* skip whitespace before the command */ | 409 | /* skip whitespace before the command */ |
| 408 | while (isspace(cmdstr[idx])) | 410 | while (isspace(cmdstr[idx])) |
