Allow the user to specify the compiler via environment variable
[hmcfgusb] / hmcfgusb.c
index b9b0f23..90e82f2 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