diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-29 16:53:11 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-29 16:53:11 +0100 |
commit | 77a51a2709de1b646ab493f0bf771d896de6efc2 (patch) | |
tree | d0e44b91d8391ca06d4de3f7d5101da76c4f940e /networking/telnet.c | |
parent | c7ef8187688b0e7f92d19b3fed2c4ecffe39a688 (diff) | |
download | busybox-w32-77a51a2709de1b646ab493f0bf771d896de6efc2.tar.gz busybox-w32-77a51a2709de1b646ab493f0bf771d896de6efc2.tar.bz2 busybox-w32-77a51a2709de1b646ab493f0bf771d896de6efc2.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index 19a414b30..7a0253525 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -368,12 +368,16 @@ static void put_iac2_msb_lsb(unsigned x_y) | |||
368 | } | 368 | } |
369 | #define put_iac2_x_y(x,y) put_iac2_msb_lsb(((x)<<8) + (y)) | 369 | #define put_iac2_x_y(x,y) put_iac2_msb_lsb(((x)<<8) + (y)) |
370 | 370 | ||
371 | #if ENABLE_FEATURE_TELNET_WIDTH \ | ||
372 | || ENABLE_FEATURE_TELNET_TTYPE \ | ||
373 | || ENABLE_FEATURE_TELNET_AUTOLOGIN | ||
371 | static void put_iac4_msb_lsb(unsigned x_y_z_t) | 374 | static void put_iac4_msb_lsb(unsigned x_y_z_t) |
372 | { | 375 | { |
373 | put_iac2_msb_lsb(x_y_z_t >> 16); | 376 | put_iac2_msb_lsb(x_y_z_t >> 16); |
374 | put_iac2_msb_lsb(x_y_z_t); /* "... & 0xffff" is implicit */ | 377 | put_iac2_msb_lsb(x_y_z_t); /* "... & 0xffff" is implicit */ |
375 | } | 378 | } |
376 | #define put_iac4_x_y_z_t(x,y,z,t) put_iac4_msb_lsb(((x)<<24) + ((y)<<16) + ((z)<<8) + (t)) | 379 | #define put_iac4_x_y_z_t(x,y,z,t) put_iac4_msb_lsb(((x)<<24) + ((y)<<16) + ((z)<<8) + (t)) |
380 | #endif | ||
377 | 381 | ||
378 | static void put_iac3_IAC_x_y_merged(unsigned wwdd_and_c) | 382 | static void put_iac3_IAC_x_y_merged(unsigned wwdd_and_c) |
379 | { | 383 | { |