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 | 65e2f7407ad73ad4089ba9f7793b7e30e924a789 (patch) | |
tree | 834eea0c7dec9b987f4a159eee206ab33d0af65b /gdb/serial.c | |
parent | 7081ff044544540525d971fe53db9217f340a8ed (diff) | |
download | gdb-65e2f7407ad73ad4089ba9f7793b7e30e924a789.zip gdb-65e2f7407ad73ad4089ba9f7793b7e30e924a789.tar.gz gdb-65e2f7407ad73ad4089ba9f7793b7e30e924a789.tar.bz2 |
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 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; |