From 65e2f7407ad73ad4089ba9f7793b7e30e924a789 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 9 Jul 2001 14:38:49 +0000 Subject: s/struct _serial_t/struct serial/ --- gdb/serial.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gdb/serial.c') diff --git a/gdb/serial.c b/gdb/serial.c index 1719f7d..4dd66fc 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -58,6 +58,9 @@ static const char logbase_ascii[] = "ascii"; static const char *logbase_enums[] = {logbase_hex, logbase_octal, logbase_ascii, NULL}; static const char *serial_logbase = logbase_ascii; + +#undef XMALLOC +#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE))) @@ -202,7 +205,7 @@ serial_open (const char *name) if (!ops) return NULL; - scb = (serial_t) xmalloc (sizeof (struct _serial_t)); + scb = XMALLOC (struct serial); scb->ops = ops; @@ -254,7 +257,7 @@ serial_fdopen (const int fd) if (!ops) return NULL; - scb = (serial_t) xmalloc (sizeof (struct _serial_t)); + scb = XMALLOC (struct serial); scb->ops = ops; -- cgit v1.1