From 8fcd36920e1b0e5ff92efb16f7ae05112cd4defa Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 17 Aug 2008 20:26:25 +0000 Subject: Fix some warnings that would be generated by gcc -Wmissing-prototypes git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5022 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/twl92230.c | 2 +- hw/usb-serial.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'hw') diff --git a/hw/twl92230.c b/hw/twl92230.c index 8fad969..ad49eac 100644 --- a/hw/twl92230.c +++ b/hw/twl92230.c @@ -129,7 +129,7 @@ static void menelaus_rtc_hz(void *opaque) menelaus_update(s); } -void menelaus_reset(i2c_slave *i2c) +static void menelaus_reset(i2c_slave *i2c) { struct menelaus_s *s = (struct menelaus_s *) i2c; s->reg = 0x00; diff --git a/hw/usb-serial.c b/hw/usb-serial.c index 10772f3..92d6dfd 100644 --- a/hw/usb-serial.c +++ b/hw/usb-serial.c @@ -483,13 +483,13 @@ static void usb_serial_handle_destroy(USBDevice *dev) qemu_free(s); } -int usb_serial_can_read(void *opaque) +static int usb_serial_can_read(void *opaque) { USBSerialState *s = opaque; return RECV_BUF - s->recv_used; } -void usb_serial_read(void *opaque, const uint8_t *buf, int size) +static void usb_serial_read(void *opaque, const uint8_t *buf, int size) { USBSerialState *s = opaque; int first_size = RECV_BUF - s->recv_ptr; @@ -501,7 +501,7 @@ void usb_serial_read(void *opaque, const uint8_t *buf, int size) s->recv_used += size; } -void usb_serial_event(void *opaque, int event) +static void usb_serial_event(void *opaque, int event) { USBSerialState *s = opaque; -- cgit v1.1