summaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-07-09 14:38:49 +0000
committerAndrew Cagney <cagney@redhat.com>2001-07-09 14:38:49 +0000
commit3f90909323e343f59e0ef8da067a4443489cbc15 (patch)
tree5987e76f939a3c3550f9f61d71f6e18ac1d6f4a0 /gdb/serial.c
parent6ba1bfd1eb2eb37f9c793583dc305515b9484431 (diff)
downloadgdb-3f90909323e343f59e0ef8da067a4443489cbc15.tar.gz
s/struct _serial_t/struct serial/
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 1719f7d6c88..4dd66fc7f35 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;