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)
             ^
This commit is contained in:
Uwe Hermann 2014-01-17 00:26:30 +01:00
parent c06c24d2d3
commit dcc94340bd
1 changed files with 2 additions and 2 deletions

View File

@ -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;