diff options
author | Stu Grossman <grossman@cygnus> | 1993-06-04 00:38:04 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1993-06-04 00:38:04 +0000 |
commit | 452b4b001f56ba5326f57e30c2af399c955eb66e (patch) | |
tree | c44b61a4374527d57c4e6c00f533afb52b6557be | |
parent | 4bf86ecb116d82508f01dab3eb6a8c132ff2eff8 (diff) | |
download | gdb-452b4b001f56ba5326f57e30c2af399c955eb66e.zip gdb-452b4b001f56ba5326f57e30c2af399c955eb66e.tar.gz gdb-452b4b001f56ba5326f57e30c2af399c955eb66e.tar.bz2 |
* ser-go32.c: Clean up lots of compilation nits.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/ser-go32.c | 29 |
2 files changed, 19 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1dd56d4..3a50b42 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 3 17:36:56 1993 Stu Grossman (grossman@cygnus.com) + + * ser-go32.c: Clean up lots of compilation nits. + Thu Jun 3 14:44:57 1993 Stu Grossman (grossman@cygnus.com) * Patches from Jeffrey Law <law@cs.utah.edu>. diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c index c9770a9..5b3ad90 100644 --- a/gdb/ser-go32.c +++ b/gdb/ser-go32.c @@ -27,6 +27,17 @@ struct go32_ttystate int bogus; }; +typedef struct { + short jmp_op; + short signature; + short version; + short buffer_start; + short buffer_end; + short getp; + short putp; + short iov; +} ASYNC_STRUCT; + static int go32_open PARAMS ((serial_t scb, const char *name)); static void go32_raw PARAMS ((serial_t scb)); static int wait_for PARAMS ((serial_t scb, int timeout)); @@ -36,7 +47,7 @@ static int go32_setbaudrate PARAMS ((serial_t scb, int rate)); static int go32_write PARAMS ((serial_t scb, const char *str, int len)); static void go32_restore PARAMS ((serial_t scb)); static void go32_close PARAMS ((serial_t scb)); -serial_ttystate go32_get_tty_state 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 int strncasecmp PARAMS ((char *str1, char *str2, int len)); static char *aptr PARAMS ((short p)); @@ -46,7 +57,7 @@ static void dos_async_tx PARAMS ((const char c)); static int dos_async_ready PARAMS (()); static int dos_async_rx PARAMS (()); static int dosasync_read PARAMS ((int fd, char *buf, int len, int timeout)); -static int dosasync_write PARAMS ((int fd, const char *buf, int len, int timeout)); +static int dosasync_write PARAMS ((int fd, const char *buf, int len)); #define SIGNATURE 0x4154 #define VERSION 1 @@ -54,17 +65,6 @@ static int dosasync_write PARAMS ((int fd, const char *buf, int len, int timeout #define peek(a,b) (*(unsigned short *)(0xe0000000 + (a)*16 + (b))) -typedef struct { - short jmp_op; - short signature; - short version; - short buffer_start; - short buffer_end; - short getp; - short putp; - short iov; -} ASYNC_STRUCT; - static ASYNC_STRUCT *async; static int iov; #define com_rb iov @@ -331,7 +331,8 @@ go32_write (scb, str, len) } static void -go32_close () +go32_close (scb) + serial_t scb; { } |