aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-23 23:15:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-23 23:15:43 +0200
commit606291beabab14c85a141c7a4225fbcab8d19fbd (patch)
tree4f46cd21214432feeb610e237e8dd49ef908c8f6 /editors
parent1f27ab0d4bb65425496ff4ed0fbbd0f5bb32786f (diff)
downloadbusybox-w32-606291beabab14c85a141c7a4225fbcab8d19fbd.tar.gz
busybox-w32-606291beabab14c85a141c7a4225fbcab8d19fbd.tar.bz2
busybox-w32-606291beabab14c85a141c7a4225fbcab8d19fbd.zip
*: more portability fixes by Dan Fandrich
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 31a1edc9f..4decbea17 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2187,11 +2187,11 @@ static void catch_sig(int sig)
2187} 2187}
2188#endif /* FEATURE_VI_USE_SIGNALS */ 2188#endif /* FEATURE_VI_USE_SIGNALS */
2189 2189
2190static int mysleep(int hund) // sleep for 'h' 1/100 seconds 2190static int mysleep(int hund) // sleep for 'hund' 1/100 seconds or stdin ready
2191{ 2191{
2192 struct pollfd pfd[1]; 2192 struct pollfd pfd[1];
2193 2193
2194 pfd[0].fd = 0; 2194 pfd[0].fd = STDIN_FILENO;
2195 pfd[0].events = POLLIN; 2195 pfd[0].events = POLLIN;
2196 return safe_poll(pfd, 1, hund*10) > 0; 2196 return safe_poll(pfd, 1, hund*10) > 0;
2197} 2197}