diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-17 20:26:25 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-17 20:26:25 +0000 |
commit | 8fcd36920e1b0e5ff92efb16f7ae05112cd4defa (patch) | |
tree | a9fa6061ef07e7648ecc19cffddd422e9f82b489 /hw | |
parent | a5f1b965dae70f7d41721edaacb109d80721b966 (diff) |
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
Diffstat (limited to 'hw')
-rw-r--r-- | hw/twl92230.c | 2 | ||||
-rw-r--r-- | hw/usb-serial.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/twl92230.c b/hw/twl92230.c index 8fad96902d..ad49eac0d8 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 10772f36cd..92d6dfdd42 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; |