| Subject: | [Qemu-devel] [PATCH 1/7] Use proper typedef syntax |
|---|---|
| From: | Juan Quintela |
| Date: | Wed, 23 Sep 2009 01:18:59 +0200 |
Why this ever compiled is a mistery to me.
Signed-off-by: Juan Quintela <quintela@xxxxxxxxxx>
---
hw/serial.c | 4 ++--
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;
--
1.6.2.5
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Qemu-devel] [PATCH 2/7] static and inline should came before the type of the functions, Juan Quintela |
|---|---|
| Next by Date: | [Qemu-devel] [PATCH 6/7] Add -Wold-style-declaration -Wold-style-definition to QEMU_CFLAGS, Juan Quintela |
| Previous by Thread: | [Qemu-devel] [PATCH 2/7] static and inline should came before the type of the functions, Juan Quintela |
| Next by Thread: | [Qemu-devel] Re: [PATCH 1/7] Use proper typedef syntax, Måns Rullgård |
| Indexes: | [Date] [Thread] [Top] [All Lists] |