From dcc94340bd4c17f74c57a9ec9a2d8d9c1f06dd9f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 17 Jan 2014 00:26:30 +0100 Subject: [PATCH] usb: Fix two compiler warnings on Windows. CC libsigrok_hw_common_la-usb.lo usb.c:241:18: warning: no previous prototype for 'usb_thread' [-Wmissing-prototypes] SR_PRIV gpointer usb_thread(gpointer data) ^ usb.c:256:13: warning: no previous prototype for 'usb_callback' [-Wmissing-prototypes] SR_PRIV int usb_callback(int fd, int revents, void *cb_data) ^ --- hardware/common/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/common/usb.c b/hardware/common/usb.c index 6e678fdb..8d4224d1 100644 --- a/hardware/common/usb.c +++ b/hardware/common/usb.c @@ -238,7 +238,7 @@ SR_PRIV int sr_usb_open(libusb_context *usb_ctx, struct sr_usb_dev_inst *usb) } #ifdef _WIN32 -SR_PRIV gpointer usb_thread(gpointer data) +static gpointer usb_thread(gpointer data) { struct sr_context *ctx = data; @@ -253,7 +253,7 @@ SR_PRIV gpointer usb_thread(gpointer data) return NULL; } -SR_PRIV int usb_callback(int fd, int revents, void *cb_data) +static int usb_callback(int fd, int revents, void *cb_data) { struct sr_context *ctx = cb_data; int ret;