Patchwork [09/20] adlib: remove IO_READ_PROTO

login
register
mail settings
Submitter Juan Quintela
Date Oct. 22, 2009, 2:36 p.m.
Message ID <afc99cfa69ec345a164767b7993ae033febfa450.1256221008.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/36681/
State New
Headers show

Comments

Juan Quintela - Oct. 22, 2009, 2:36 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/adlib.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
malc - Oct. 22, 2009, 8:34 p.m.
On Thu, 22 Oct 2009, Juan Quintela wrote:

No.
[..snip..]

Patch

diff --git a/hw/adlib.c b/hw/adlib.c
index 1d8092b..3221fea 100644
--- a/hw/adlib.c
+++ b/hw/adlib.c
@@ -51,8 +51,6 @@  void YMF262UpdateOneQEMU (int which, INT16 *dst, int length);
 #define SHIFT 1
 #endif

-#define IO_READ_PROTO(name) \
-    uint32_t name (void *opaque, uint32_t nport)
 #define IO_WRITE_PROTO(name) \
     void name (void *opaque, uint32_t nport, uint32_t val)

@@ -133,7 +131,7 @@  static IO_WRITE_PROTO (adlib_write)
 #endif
 }

-static IO_READ_PROTO (adlib_read)
+static uint32_t adlib_read (void *opaque, uint32_t nport)
 {
     AdlibState *s = opaque;
     uint8_t data;