diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-07-09 14:38:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-07-09 14:38:49 +0000 |
commit | 3f90909323e343f59e0ef8da067a4443489cbc15 (patch) | |
tree | 5987e76f939a3c3550f9f61d71f6e18ac1d6f4a0 /gdb/serial.c | |
parent | 6ba1bfd1eb2eb37f9c793583dc305515b9484431 (diff) | |
download | gdb-3f90909323e343f59e0ef8da067a4443489cbc15.tar.gz |
s/struct _serial_t/struct serial/
Diffstat (limited to 'gdb/serial.c')
-rw-r--r-- | gdb/serial.c | 7 |
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; |