]> cvs.zerfleddert.de Git - hmcfgusb/blobdiff - hmcfgusb.c
Add missing case in switch
[hmcfgusb] / hmcfgusb.c
index b9b0f2347df0dd9b7b283e7004cd85ed014fbb4a..90e82f2583eaa5b70224844823acca59e08aacea 100644 (file)
@@ -61,7 +61,7 @@ static int debug = 0;
 static int libusb_initialized = 0;
 
 /* Not in all libusb-1.0 versions, so we have to roll our own :-( */
-static char * usb_strerror(int e)
+static const char* usb_strerror(int e)
 {
        static char unknerr[256];
 
@@ -99,7 +99,7 @@ static char * usb_strerror(int e)
        return unknerr;
 }
 
-static char * usb_str_transfer_status(int e)
+static const char* usb_str_transfer_status(int e)
 {
        static char unknerr[256];
 
@@ -113,6 +113,8 @@ static char * usb_str_transfer_status(int e)
                case LIBUSB_TRANSFER_CANCELLED:
                        return "Transfer cancelled";
                case LIBUSB_TRANSFER_STALL:
+                       return "For bulk/interrupt endpoints: endpoint stalled. For control endpoints: control request not supported.";
+               case LIBUSB_TRANSFER_NO_DEVICE:
                        return "No device";
                case LIBUSB_TRANSFER_OVERFLOW:
                        return "Transfer overflow";
Impressum, Datenschutz