[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 2b321d6] Use proper typedef syntax

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 2b321d6] Use proper typedef syntax
Date: Fri, 25 Sep 2009 19:59:42 -0000

From: Juan Quintela <address@hidden>

Why this ever compiled is a mistery to me.

Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>

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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]