diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-08 16:07:02 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-04-08 16:07:02 +0000 |
commit | 9bb500e5d36c2c5945b611c4c2064e03a6ff9660 (patch) | |
tree | 8e69bb572dbb2636689a15b21d7a646e942b5091 /coreutils/stty.c | |
parent | a90d14bdbfab265b227e483c71dad87b7e1c3c1b (diff) | |
download | busybox-w32-9bb500e5d36c2c5945b611c4c2064e03a6ff9660.tar.gz busybox-w32-9bb500e5d36c2c5945b611c4c2064e03a6ff9660.tar.bz2 busybox-w32-9bb500e5d36c2c5945b611c4c2064e03a6ff9660.zip |
add some missed statics on constant objects.
fix few #ifndef ENABLE_xxx
# size busybox_old busybox_unstripped
text data bss dec hex filename
677152 2920 18208 698280 aa7a8 busybox_old
676420 2920 18208 697548 aa4cc busybox_unstripped
git-svn-id: svn://busybox.net/trunk/busybox@18366 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r-- | coreutils/stty.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c index b13f1fb28..7493192e9 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -388,7 +388,7 @@ static const char *device_name = bb_msg_standard_input; | |||
388 | 388 | ||
389 | /* Return a string that is the printable representation of character CH */ | 389 | /* Return a string that is the printable representation of character CH */ |
390 | /* Adapted from 'cat' by Torbjorn Granlund */ | 390 | /* Adapted from 'cat' by Torbjorn Granlund */ |
391 | static const char *visible(unsigned int ch) | 391 | static const char *visible(unsigned ch) |
392 | { | 392 | { |
393 | char *bpout = G.buf; | 393 | char *bpout = G.buf; |
394 | 394 | ||
@@ -561,18 +561,18 @@ enum { | |||
561 | 561 | ||
562 | static int find_param(const char * const name) | 562 | static int find_param(const char * const name) |
563 | { | 563 | { |
564 | const char * const params[] = { | 564 | static const char * const params[] = { |
565 | "line", | 565 | "line", |
566 | "rows", | 566 | "rows", |
567 | "cols", | 567 | "cols", |
568 | "columns", | 568 | "columns", |
569 | "size", | 569 | "size", /* 4 */ |
570 | "speed", | 570 | "speed", /* 5 */ |
571 | "ispeed", | 571 | "ispeed", |
572 | "ospeed", | 572 | "ospeed", |
573 | NULL | 573 | NULL |
574 | }; | 574 | }; |
575 | smalluint i = index_in_str_array(params, name) + 1; | 575 | int i = index_in_str_array(params, name) + 1; |
576 | if (i == 0) | 576 | if (i == 0) |
577 | return 0; | 577 | return 0; |
578 | if (!(i == 4 || i == 5)) | 578 | if (!(i == 4 || i == 5)) |
@@ -584,7 +584,7 @@ static int find_param(const char * const name) | |||
584 | static int recover_mode(const char *arg, struct termios *mode) | 584 | static int recover_mode(const char *arg, struct termios *mode) |
585 | { | 585 | { |
586 | int i, n; | 586 | int i, n; |
587 | unsigned int chr; | 587 | unsigned chr; |
588 | unsigned long iflag, oflag, cflag, lflag; | 588 | unsigned long iflag, oflag, cflag, lflag; |
589 | 589 | ||
590 | /* Scan into temporaries since it is too much trouble to figure out | 590 | /* Scan into temporaries since it is too much trouble to figure out |
@@ -612,7 +612,7 @@ static int recover_mode(const char *arg, struct termios *mode) | |||
612 | } | 612 | } |
613 | 613 | ||
614 | static void display_recoverable(const struct termios *mode, | 614 | static void display_recoverable(const struct termios *mode, |
615 | const int ATTRIBUTE_UNUSED dummy) | 615 | int ATTRIBUTE_UNUSED dummy) |
616 | { | 616 | { |
617 | int i; | 617 | int i; |
618 | printf("%lx:%lx:%lx:%lx", | 618 | printf("%lx:%lx:%lx:%lx", |
@@ -975,7 +975,7 @@ int stty_main(int argc, char **argv) | |||
975 | goto invalid_argument; | 975 | goto invalid_argument; |
976 | } | 976 | } |
977 | } | 977 | } |
978 | end_option: | 978 | end_option: |
979 | continue; | 979 | continue; |
980 | } | 980 | } |
981 | 981 | ||
@@ -1031,7 +1031,7 @@ end_option: | |||
1031 | default: | 1031 | default: |
1032 | if (recover_mode(arg, &mode) == 1) break; | 1032 | if (recover_mode(arg, &mode) == 1) break; |
1033 | if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break; | 1033 | if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break; |
1034 | invalid_argument: | 1034 | invalid_argument: |
1035 | bb_error_msg_and_die("invalid argument '%s'", arg); | 1035 | bb_error_msg_and_die("invalid argument '%s'", arg); |
1036 | } | 1036 | } |
1037 | stty_state &= ~STTY_noargs; | 1037 | stty_state &= ~STTY_noargs; |