diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:18:48 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-04-21 18:18:48 +0200 |
commit | 47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5 (patch) | |
tree | 05127e986021176649f2dd660a92ef8b8e107e92 /console-tools | |
parent | e6a2f4cc5a47d3022bdf5ca2cacbaa5a8c5baf7a (diff) | |
download | busybox-w32-47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5.tar.gz busybox-w32-47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5.tar.bz2 busybox-w32-47cfbf32fd66563f8c4e09ad6cced6abfbe2fad5.zip |
*: add most of the required setup_common_bufsiz() calls
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/resize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/console-tools/resize.c b/console-tools/resize.c index ed80aa082..a3342a195 100644 --- a/console-tools/resize.c +++ b/console-tools/resize.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #define ESC "\033" | 19 | #define ESC "\033" |
20 | 20 | ||
21 | #define old_termios_p ((struct termios*)bb_common_bufsiz1) | 21 | #define old_termios_p ((struct termios*)bb_common_bufsiz1) |
22 | #define INIT_G() do { setup_common_bufsiz(); } while (0) | ||
22 | 23 | ||
23 | static void | 24 | static void |
24 | onintr(int sig UNUSED_PARAM) | 25 | onintr(int sig UNUSED_PARAM) |
@@ -34,6 +35,8 @@ int resize_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
34 | struct winsize w = { 0, 0, 0, 0 }; | 35 | struct winsize w = { 0, 0, 0, 0 }; |
35 | int ret; | 36 | int ret; |
36 | 37 | ||
38 | INIT_G(); | ||
39 | |||
37 | /* We use _stderr_ in order to make resize usable | 40 | /* We use _stderr_ in order to make resize usable |
38 | * in shell backticks (those redirect stdout away from tty). | 41 | * in shell backticks (those redirect stdout away from tty). |
39 | * NB: other versions of resize open "/dev/tty" | 42 | * NB: other versions of resize open "/dev/tty" |