diff options
author | Kung Hsu <kung@cygnus> | 1995-02-04 00:51:30 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1995-02-04 00:51:30 +0000 |
commit | 6396e0c04abed236a203303f7e9085bfd313d9dd (patch) | |
tree | b2e349d5ddfff5a48441a02839ef62408b024c4a /gdb/ser-go32-para.c | |
parent | 236857e50ce47c67e98725a907d391ff6fec87ef (diff) | |
download | gdb-6396e0c04abed236a203303f7e9085bfd313d9dd.zip gdb-6396e0c04abed236a203303f7e9085bfd313d9dd.tar.gz gdb-6396e0c04abed236a203303f7e9085bfd313d9dd.tar.bz2 |
* ser-go32-para.c (dos_read): fix syntax errors.
Diffstat (limited to 'gdb/ser-go32-para.c')
-rw-r--r-- | gdb/ser-go32-para.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/ser-go32-para.c b/gdb/ser-go32-para.c index 6046779..707398e 100644 --- a/gdb/ser-go32-para.c +++ b/gdb/ser-go32-para.c @@ -18,6 +18,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "defs.h" +#include "serial.h" #include <sys/dos.h> #if 0 @@ -40,7 +41,7 @@ static void go32_close PARAMS ((serial_t scb)); static serial_ttystate go32_get_tty_state PARAMS ((serial_t scb)); static int go32_set_tty_state PARAMS ((serial_t scb, serial_ttystate state)); static unsigned long getivec PARAMS ((int which)); -static int dos_read PARAMS ((int fd, char *buf, int len, int timeout)); +static int dos_read PARAMS ((int fd, char *buf, int len)); static int dos_write PARAMS ((int fd, const char *buf, int len)); #if 0 @@ -120,7 +121,7 @@ go32_open (scb, name) serial_t scb; const char *name; { - int port; + int port, ret; if (strncasecmp (name, "lpt", 3) != 0) { @@ -136,8 +137,8 @@ go32_open (scb, name) return -11; } - return = biosprn (1, 0, port); - if (!return) + ret = biosprn (1, 0, port); + if (!ret) return -1; scb->fd = port; |