projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b310879
)
Fix
author
Miguel de Icaza
<miguel@gnome.org>
Thu, 17 Apr 2008 23:55:08 +0000
(23:55 -0000)
committer
Miguel de Icaza
<miguel@gnome.org>
Thu, 17 Apr 2008 23:55:08 +0000
(23:55 -0000)
svn path=/trunk/mono/; revision=101086
support/serial.c
patch
|
blob
|
history
diff --git
a/support/serial.c
b/support/serial.c
index abe409e05b617269da96c9b7f453dbe179d31ca9..ed6cd47947c4f2f2ec7226d90dbcef2cb5a323ce 100644
(file)
--- 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;