diff options
Diffstat (limited to 'miscutils/microcom.c')
| -rw-r--r-- | miscutils/microcom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index 160bff19b..00a49837e 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c | |||
| @@ -45,8 +45,8 @@ int microcom_main(int argc, char **argv) | |||
| 45 | { | 45 | { |
| 46 | struct pollfd pfd[2]; | 46 | struct pollfd pfd[2]; |
| 47 | int nfd; | 47 | int nfd; |
| 48 | //int sfd; | 48 | int sfd; |
| 49 | #define sfd (pfd[0].fd) | 49 | /* #define sfd (pfd[0].fd) - gcc 4.2.1 is still not smart enough */ |
| 50 | char *device_lock_file; | 50 | char *device_lock_file; |
| 51 | const char *opt_s = "9600"; | 51 | const char *opt_s = "9600"; |
| 52 | speed_t speed; | 52 | speed_t speed; |
| @@ -123,7 +123,7 @@ int microcom_main(int argc, char **argv) | |||
| 123 | goto restore0_close_unlock_and_exit; | 123 | goto restore0_close_unlock_and_exit; |
| 124 | 124 | ||
| 125 | // main loop: check with poll(), then read/write bytes across | 125 | // main loop: check with poll(), then read/write bytes across |
| 126 | /* pfd[0].fd = sfd; - they are the same */ | 126 | pfd[0].fd = sfd; |
| 127 | pfd[0].events = POLLIN; | 127 | pfd[0].events = POLLIN; |
| 128 | pfd[1].fd = STDIN_FILENO; | 128 | pfd[1].fd = STDIN_FILENO; |
| 129 | pfd[1].events = POLLIN; | 129 | pfd[1].events = POLLIN; |
