aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-termios.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ser-termios.c')
-rw-r--r--gdb/ser-termios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ser-termios.c b/gdb/ser-termios.c
index d937624..3bf8f17 100644
--- a/gdb/ser-termios.c
+++ b/gdb/ser-termios.c
@@ -197,12 +197,12 @@ DEFUN(serial_write,(str, len),
CONST char *str AND
int len)
{
- write (desc, str, len);
+ return (write (desc, str, len));
}
int
DEFUN_VOID(serial_close)
{
-close(desc);
+ return (close(desc));
}