提交 b84a5c6f 编写于 作者: A Amit Shah 提交者: Anthony Liguori

Remove typedef for bool from eepro100.c

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 <stdbool.h> instead.
Signed-off-by: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 58a04db1
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#endif #endif
#include <stddef.h> /* offsetof */ #include <stddef.h> /* offsetof */
#include <stdbool.h>
#include "hw.h" #include "hw.h"
#include "pci.h" #include "pci.h"
#include "net.h" #include "net.h"
...@@ -109,8 +110,6 @@ ...@@ -109,8 +110,6 @@
#define INT_MASK 0x0100 #define INT_MASK 0x0100
#define DRVR_INT 0x0200 /* Driver generated interrupt. */ #define DRVR_INT 0x0200 /* Driver generated interrupt. */
typedef unsigned char bool;
/* Offsets to the various registers. /* Offsets to the various registers.
All accesses need not be longword aligned. */ All accesses need not be longword aligned. */
enum speedo_offsets { enum speedo_offsets {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册