*: hopefully all setup_common_bufsiz() are in place
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -156,11 +156,11 @@ int microcom_main(int argc UNUSED_PARAM, char **argv)
|
||||
skip_write: ;
|
||||
}
|
||||
if (pfd[0].revents) {
|
||||
#define iobuf bb_common_bufsiz1
|
||||
#define sizeof_iobuf COMMON_BUFSIZE
|
||||
ssize_t len;
|
||||
#define iobuf bb_common_bufsiz1
|
||||
setup_common_bufsiz();
|
||||
// read from device -> write to stdout
|
||||
len = safe_read(sfd, iobuf, sizeof_iobuf);
|
||||
len = safe_read(sfd, iobuf, COMMON_BUFSIZE);
|
||||
if (len > 0)
|
||||
full_write(STDOUT_FILENO, iobuf, len);
|
||||
else {
|
||||
|
Reference in New Issue
Block a user