more -Wall warning fixes from Cristian Ionescu-Idbohrn.
This time it resulted in small code changes: function old new delta nexpr 820 828 +8 tail_main 1200 1202 +2 wrapf 166 167 +1 parse_mount_options 227 209 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 11/-18) Total: -7 bytes
This commit is contained in:
@ -233,7 +233,7 @@ static xlist_t *process_stdin(xlist_t *list_arg,
|
||||
}
|
||||
if (s == NULL)
|
||||
s = p = buf;
|
||||
if ((p - buf) >= mc)
|
||||
if ((size_t)(p - buf) >= mc)
|
||||
bb_error_msg_and_die("argument line too long");
|
||||
*p++ = (c == EOF ? '\0' : c);
|
||||
if (c == EOF) { /* word's delimiter or EOF detected */
|
||||
|
Reference in New Issue
Block a user