aboutsummaryrefslogtreecommitdiff
path: root/miscutils/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/chat.c')
-rw-r--r--miscutils/chat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/miscutils/chat.c b/miscutils/chat.c
index bd2abc24a..6b429f2a6 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -17,6 +17,7 @@
17//usage: "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'" 17//usage: "chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'"
18 18
19#include "libbb.h" 19#include "libbb.h"
20#include "common_bufsiz.h"
20 21
21// default timeout: 45 sec 22// default timeout: 45 sec
22#define DEFAULT_CHAT_TIMEOUT 45*1000 23#define DEFAULT_CHAT_TIMEOUT 45*1000
@@ -285,9 +286,10 @@ int chat_main(int argc UNUSED_PARAM, char **argv)
285 && poll(&pfd, 1, timeout) > 0 286 && poll(&pfd, 1, timeout) > 0
286 && (pfd.revents & POLLIN) 287 && (pfd.revents & POLLIN)
287 ) { 288 ) {
288#define buf bb_common_bufsiz1
289 llist_t *l; 289 llist_t *l;
290 ssize_t delta; 290 ssize_t delta;
291#define buf bb_common_bufsiz1
292 setup_common_bufsiz();
291 293
292 // read next char from device 294 // read next char from device
293 if (safe_read(STDIN_FILENO, buf+buf_len, 1) > 0) { 295 if (safe_read(STDIN_FILENO, buf+buf_len, 1) > 0) {