aboutsummaryrefslogtreecommitdiffstats
path: root/hw/usb-serial.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-17 20:26:25 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-17 20:26:25 +0000
commit8fcd36920e1b0e5ff92efb16f7ae05112cd4defa (patch)
treea9fa6061ef07e7648ecc19cffddd422e9f82b489 /hw/usb-serial.c
parenta5f1b965dae70f7d41721edaacb109d80721b966 (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/usb-serial.c')
-rw-r--r--hw/usb-serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/usb-serial.c b/hw/usb-serial.c
index 10772f36c..92d6dfdd4 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;