From: Uwe Hermann Date: Thu, 16 Jan 2014 23:26:30 +0000 (+0100) Subject: usb: Fix two compiler warnings on Windows. X-Git-Tag: libsigrok-0.3.0~261 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dcc94340bd4c17f74c57a9ec9a2d8d9c1f06dd9f;p=libsigrok.git 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) ^ --- 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;