removed warning "comparison between signed and unsigned". Added ATTRIBUTE_UNUSED. My whitespace

This commit is contained in:
"Vladimir N. Oleynik" 2006-01-30 13:51:50 +00:00
parent 676b15e067
commit 59c4e5cf92

View File

@ -192,7 +192,7 @@ unexpected_eof:
state = QUOTE; state = QUOTE;
} else { } else {
set: set:
if ((p - buf) >= mc) if ((size_t)(p - buf) >= mc)
bb_error_msg_and_die("argument line too long"); bb_error_msg_and_die("argument line too long");
*p++ = c; *p++ = c;
} }
@ -340,7 +340,7 @@ static int xargs_ask_confirmation(void)
#endif #endif
#ifdef CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM #ifdef CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM
static xlist_t *process0_stdin(xlist_t * list_arg, const char *eof_str, static xlist_t *process0_stdin(xlist_t * list_arg, const char *eof_str ATTRIBUTE_UNUSED,
size_t mc, char *buf) size_t mc, char *buf)
{ {
int c; /* current char */ int c; /* current char */
@ -366,7 +366,7 @@ static xlist_t *process0_stdin(xlist_t * list_arg, const char *eof_str,
} }
if (s == NULL) if (s == NULL)
s = p = buf; s = p = buf;
if ((p - buf) >= mc) if ((size_t)(p - buf) >= mc)
bb_error_msg_and_die("argument line too long"); bb_error_msg_and_die("argument line too long");
*p++ = c; *p++ = c;
if (c == 0) { /* word's delimiter or EOF detected */ if (c == 0) { /* word's delimiter or EOF detected */