From patchwork Tue Sep 22 23:18:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 34102 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A982EB7B7C for ; Wed, 23 Sep 2009 09:26:12 +1000 (EST) Received: from localhost ([127.0.0.1]:35564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqEkK-0002DX-9l for incoming@patchwork.ozlabs.org; Tue, 22 Sep 2009 19:26:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqEdk-0008G1-Hx for qemu-devel@nongnu.org; Tue, 22 Sep 2009 19:19:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqEdc-0008BM-5p for qemu-devel@nongnu.org; Tue, 22 Sep 2009 19:19:16 -0400 Received: from [199.232.76.173] (port=54123 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqEdb-0008BB-Tg for qemu-devel@nongnu.org; Tue, 22 Sep 2009 19:19:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37859) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqEdZ-0003Tx-LG for qemu-devel@nongnu.org; Tue, 22 Sep 2009 19:19:10 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8MNJ9dF013614 for ; Tue, 22 Sep 2009 19:19:09 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8MNJ6l0028452; Tue, 22 Sep 2009 19:19:08 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 23 Sep 2009 01:18:59 +0200 Message-Id: <4880a0bea524cc86c079cf356172d0599636f358.1253661009.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 1/7] Use proper typedef syntax X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Why this ever compiled is a mistery to me. Signed-off-by: Juan Quintela --- 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;