From patchwork Thu Aug 27 12:31:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 32251 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 6EC08B7B6A for ; Thu, 27 Aug 2009 22:34:36 +1000 (EST) Received: from localhost ([127.0.0.1]:38486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgeBS-0007R7-ID for incoming@patchwork.ozlabs.org; Thu, 27 Aug 2009 08:34:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mge8y-0005gS-AR for qemu-devel@nongnu.org; Thu, 27 Aug 2009 08:31:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mge8t-0005Xu-9w for qemu-devel@nongnu.org; Thu, 27 Aug 2009 08:31:55 -0400 Received: from [199.232.76.173] (port=54683 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mge8s-0005Xj-VV for qemu-devel@nongnu.org; Thu, 27 Aug 2009 08:31:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46952) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mge8s-0001pn-JL for qemu-devel@nongnu.org; Thu, 27 Aug 2009 08:31:50 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7RCVkZE011047; Thu, 27 Aug 2009 08:31:46 -0400 Received: from localhost (vpn-12-218.rdu.redhat.com [10.11.12.218]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7RCVinc009132; Thu, 27 Aug 2009 08:31:45 -0400 From: Amit Shah To: qemu-devel@nongnu.org Date: Thu, 27 Aug 2009 18:01:24 +0530 Message-Id: <1251376284-22426-1-git-send-email-amit.shah@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Amit Shah Subject: [Qemu-devel] [PATCH] Remove typedef for bool from eepro100.c 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 eepro100.c shouldn't have the need to do this in its local header file. And I recently started getting this: $ make -j3 ... CC x86_64-softmmu/eepro100.o /home/amit/src/qemu/hw/eepro100.c:112: error: two or more data types in declaration specifiers /home/amit/src/qemu/hw/eepro100.c:112: warning: useless type name in empty declaration make[1]: *** [eepro100.o] Error 1 so just remove the typedef and include instead. Signed-off-by: Amit Shah --- hw/eepro100.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 8988b3f..0634f8c 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -38,6 +38,7 @@ #endif #include /* offsetof */ +#include #include "hw.h" #include "pci.h" #include "net.h" @@ -109,8 +110,6 @@ #define INT_MASK 0x0100 #define DRVR_INT 0x0200 /* Driver generated interrupt. */ -typedef unsigned char bool; - /* Offsets to the various registers. All accesses need not be longword aligned. */ enum speedo_offsets {