diff mbox

[09/20] adlib: remove IO_READ_PROTO

Message ID afc99cfa69ec345a164767b7993ae033febfa450.1256221008.git.quintela@redhat.com
State New
Headers show

Commit Message

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

Comments

malc Oct. 22, 2009, 8:34 p.m. UTC | #1
On Thu, 22 Oct 2009, Juan Quintela wrote:

No.
[..snip..]
diff mbox

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;