aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/microcom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/microcom.c b/util-linux/microcom.c
index 8edc3e912..7a746a311 100644
--- a/util-linux/microcom.c
+++ b/util-linux/microcom.c
@@ -1,4 +1,5 @@
1/* 1/* vi: set sw=4 ts=4: */
2/*
2 * bare bones 'talk to modem' program - similar to 'cu -l $device' 3 * bare bones 'talk to modem' program - similar to 'cu -l $device'
3 * inspired by mgetty's microcom 4 * inspired by mgetty's microcom
4 * 5 *
@@ -107,7 +108,7 @@ int microcom_main(int argc, char **argv)
107 while (-1 == poll(pfd, 2, -1) && EINTR == errno) 108 while (-1 == poll(pfd, 2, -1) && EINTR == errno)
108 continue; 109 continue;
109 for (i = 0; i < 2; ++i) { 110 for (i = 0; i < 2; ++i) {
110 if (pfd[i].revents & POLLIN) { 111 if (pfd[i].revents & POLLIN) {
111 len = read(pfd[i].fd, bb_common_bufsiz1, COMMON_BUFSIZE); 112 len = read(pfd[i].fd, bb_common_bufsiz1, COMMON_BUFSIZE);
112 if (len > 0) { 113 if (len > 0) {
113 if (!i && 24 == bb_common_bufsiz1[0]) 114 if (!i && 24 == bb_common_bufsiz1[0])