function old new delta
chat_main 1356 1379 +23
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
, *argv
);
if (key >= 0) {
+ bool onoff;
// cache directive value
char *arg = *++argv;
+
+ if (!arg) {
+#if ENABLE_FEATURE_CHAT_TTY_HIFI
+ tcsetattr(STDIN_FILENO, TCSAFLUSH, &tio0);
+#endif
+ bb_show_usage();
+ }
// OFF -> 0, anything else -> 1
- bool onoff = (0 != strcmp("OFF", arg));
+ onoff = (0 != strcmp("OFF", arg));
// process directive
if (DIR_HANGUP == key) {
// turn SIGHUP on/off