aboutsummaryrefslogtreecommitdiff
path: root/hw/serial.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-23 01:18:59 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-09-25 19:51:09 +0000
commit2b321d697b6bab67c4d0b69303eee2944805b4f7 (patch)
treebeef94a09040333532c81896a068e0905def04e7 /hw/serial.c
parent3f600fa030cf4b8a7adccd3b3d3e9353e37e0915 (diff)
downloadqemu-2b321d697b6bab67c4d0b69303eee2944805b4f7.zip
qemu-2b321d697b6bab67c4d0b69303eee2944805b4f7.tar.gz
qemu-2b321d697b6bab67c4d0b69303eee2944805b4f7.tar.bz2
Use proper typedef syntax
Why this ever compiled is a mistery to me. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/serial.c')
-rw-r--r--hw/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/serial.c b/hw/serial.c
index a22770f..6e8c6e1 100644
--- a/hw/serial.c
+++ b/hw/serial.c
@@ -98,13 +98,13 @@
#define RECV_FIFO 1
#define MAX_XMIT_RETRY 4
-struct SerialFIFO {
+typedef struct SerialFIFO {
uint8_t data[UART_FIFO_LENGTH];
uint8_t count;
uint8_t itl; /* Interrupt Trigger Level */
uint8_t tail;
uint8_t head;
-} typedef SerialFIFO;
+} SerialFIFO;
struct SerialState {
uint16_t divider;