diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-28 09:39:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-28 09:39:30 +0000 |
commit | 0effc2410b219de8c1966752ed217d67943fce69 (patch) | |
tree | fd2fce34aa42d0668f5da5e101ae1ca650c63354 /miscutils | |
parent | b5c60fc7870a66d89de571e96596b0745edcd6d9 (diff) | |
download | busybox-w32-0effc2410b219de8c1966752ed217d67943fce69.tar.gz busybox-w32-0effc2410b219de8c1966752ed217d67943fce69.tar.bz2 busybox-w32-0effc2410b219de8c1966752ed217d67943fce69.zip |
microcom: undo #define trick, gcc fails to take advantage of it
Diffstat (limited to 'miscutils')
-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; |