Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2008-04-18 03:55:08 +0400
committerMiguel de Icaza <miguel@gnome.org>2008-04-18 03:55:08 +0400
commit53eebbf040ef45a40fc18981d6d0fe091c23be2d (patch)
treea2f5bbff5e887a5a1046c2b1d12086507c8956c7 /support
parentb3108791351ca358a54f95f6f9eaa37a10537455 (diff)
Fix
svn path=/trunk/mono/; revision=101086
Diffstat (limited to 'support')
-rw-r--r--support/serial.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/support/serial.c b/support/serial.c
index abe409e05b6..ed6cd47947c 100644
--- a/support/serial.c
+++ b/support/serial.c
@@ -92,22 +92,14 @@ int
write_serial (int fd, guchar *buffer, int offset, int count, int timeout)
{
struct pollfd pinfo;
+ guint32 n;
pinfo.fd = fd;
pinfo.events = POLLOUT;
pinfo.revents = POLLOUT;
-
- struct timeval tmval;
- fd_set writefs;
- guint32 n;
-
n = count;
- FD_SET(fd, &writefs);
- tmval.tv_sec = timeout / 1000;
- tmval.tv_usec = (timeout - tmval.tv_sec) * 1000;
-
while (n > 0)
{
size_t t;