more -Wall warning fixes. -Wall is enabled now.
This commit is contained in:
@@ -73,7 +73,7 @@ static const char *unpack_usage_messages(void)
|
||||
|
||||
i = start_bunzip(&bd,
|
||||
/* src_fd: */ -1,
|
||||
/* inbuf: */ packed_usage,
|
||||
/* inbuf: */ (void *)packed_usage,
|
||||
/* len: */ sizeof(packed_usage));
|
||||
/* read_bunzip can longjmp to start_bunzip, and ultimately
|
||||
* end up here with i != 0 on read data errors! Not trivial */
|
||||
@@ -628,7 +628,7 @@ static int busybox_main(char **argv)
|
||||
if (!argv[1]) {
|
||||
/* Called without arguments */
|
||||
const char *a;
|
||||
int col, output_width;
|
||||
unsigned col, output_width;
|
||||
help:
|
||||
output_width = 80;
|
||||
if (ENABLE_FEATURE_AUTOWIDTH) {
|
||||
|
@@ -1318,7 +1318,7 @@ static void cmdedit_setwidth(unsigned w, int redraw_flg)
|
||||
|
||||
static void win_changed(int nsig)
|
||||
{
|
||||
int width;
|
||||
unsigned width;
|
||||
get_terminal_width_height(0, &width, NULL);
|
||||
cmdedit_setwidth(width, nsig /* - just a yes/no flag */);
|
||||
if (nsig == SIGWINCH)
|
||||
@@ -1353,7 +1353,7 @@ int read_line_input(const char *prompt, char *command, int maxsize, line_input_t
|
||||
#if ENABLE_FEATURE_TAB_COMPLETION
|
||||
smallint lastWasTab = FALSE;
|
||||
#endif
|
||||
unsigned int ic;
|
||||
unsigned ic;
|
||||
unsigned char c;
|
||||
smallint break_out = 0;
|
||||
#if ENABLE_FEATURE_EDITING_VI
|
||||
|
@@ -262,7 +262,7 @@ off_t fdlength(int fd)
|
||||
|
||||
/* It is perfectly ok to pass in a NULL for either width or for
|
||||
* height, in which case that value will not be set. */
|
||||
int get_terminal_width_height(int fd, int *width, int *height)
|
||||
int get_terminal_width_height(int fd, unsigned *width, unsigned *height)
|
||||
{
|
||||
struct winsize win = { 0, 0, 0, 0 };
|
||||
int ret = ioctl(fd, TIOCGWINSZ, &win);
|
||||
|
Reference in New Issue
Block a user