diff options
author | Miguel de Icaza <miguel@gnome.org> | 2006-08-14 01:09:48 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2006-08-14 01:09:48 +0400 |
commit | 9d72c873566d0550f68a83cc80e18208c86cb417 (patch) | |
tree | 4f1556d56a708938c27714b0d3ec73ac41de7dff /support | |
parent | 997998b63759794bbda7a1f10e5933b08922a9a5 (diff) |
2006-08-13 Miguel de Icaza <miguel@novell.com>
* serial.c (get_bytes_in_buffer): Change the signature, we do not
return any meaningful error other than -1.
svn path=/trunk/mono/; revision=63687
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 5 | ||||
-rw-r--r-- | support/serial.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 009da589472..6f01634b579 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,8 @@ +2006-08-13 Miguel de Icaza <miguel@novell.com> + + * serial.c (get_bytes_in_buffer): Change the signature, we do not + return any meaningful error other than -1. + 2006-06-28 Zoltan Varga <vargaz@gmail.com> * mph.h (MPH_INTERNAL): Only use this if HAVE_VISIBILITY_HIDDEN is diff --git a/support/serial.c b/support/serial.c index 9934bce08c7..c0d2dbdae9f 100644 --- a/support/serial.c +++ b/support/serial.c @@ -118,13 +118,11 @@ discard_buffer (int fd, gboolean input) } gint32 -get_bytes_in_buffer (int fd, gboolean input, gint32 *error) +get_bytes_in_buffer (int fd, gboolean input) { gint32 retval; - *error = 0; if (ioctl (fd, input ? FIONREAD : TIOCOUTQ, &retval) == -1) { - *error = -1; return -1; } |