diff options
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 882cbca..5adb729 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -362,10 +362,10 @@ static int mips_receive_wait = 5; static int mips_need_reply = 0; /* Handle used to access serial I/O stream. */ -static serial_t mips_desc; +static struct serial *mips_desc; /* UDP handle used to download files to target. */ -static serial_t udp_desc; +static struct serial *udp_desc; static int udp_in_use; /* TFTP filename used to download files to DDB board, in the form @@ -1540,7 +1540,7 @@ device is attached to the target board (e.g., /dev/ttya).\n" /* Open and initialize the serial port. */ mips_desc = SERIAL_OPEN (serial_port_name); - if (mips_desc == (serial_t) NULL) + if (mips_desc == NULL) perror_with_name (serial_port_name); if (baud_rate != -1) |