Fixup warnings and undefined operations that show up in gcc-3.1
-Erik
This commit is contained in:
1 parent
cafc103230
commit
2276d83639
11 files changed
+26
-16
No files matched your search
+4
-2
@@ -401,8 +401,10 @@ static char *parse_cmd_str(struct sed_cmd * const sed_cmd, const char *const cmd
|
||||
idx = get_address(sed_cmd, cmdstr, &sed_cmd->beg_line, &sed_cmd->beg_match);
|
||||
|
||||
/* second part (if present) will begin with a comma */
|
||||
if (cmdstr[idx] == ',')
|
||||
idx += get_address(sed_cmd, &cmdstr[++idx], &sed_cmd->end_line, &sed_cmd->end_match);
|
||||
if (cmdstr[idx] == ',') {
|
||||
idx++;
|
||||
idx += get_address(sed_cmd, &cmdstr[idx], &sed_cmd->end_line, &sed_cmd->end_match);
|
||||
}
|
||||
|
||||
/* skip whitespace before the command */
|
||||
while (isspace(cmdstr[idx]))
|
||||
|
||||
Reference in new issue
Block a user