]> sigrok.org Git - libsigrok.git/commitdiff
usb: Fix two compiler warnings on Windows.
authorUwe Hermann <redacted>
Thu, 16 Jan 2014 23:26:30 +0000 (00:26 +0100)
committerUwe Hermann <redacted>
Thu, 16 Jan 2014 23:38:33 +0000 (00:38 +0100)
  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

index 6e678fdb401d1d681000fc3a6e273c7374656957..8d4224d1e35545579e5ab5c7c6b2c5b94f99defb 100644 (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;