summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanh H Tran2019-09-26 13:25:09 -0500
committerThanh H Tran2019-09-26 13:25:09 -0500
commit182e325cebfcc60162ff603419bf2b1f077d2e7d (patch)
tree10dcc5081490c0ded95370143325507fa2ec1d41
parentf30c23342fa9e033d2023f78e6f8ccfada1a1273 (diff)
downloadusb-182e325cebfcc60162ff603419bf2b1f077d2e7d.tar.gz
usb-182e325cebfcc60162ff603419bf2b1f077d2e7d.tar.xz
usb-182e325cebfcc60162ff603419bf2b1f077d2e7d.zip
Fix type mismatch
-rw-r--r--src/usb_func/device/usbdmsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usb_func/device/usbdmsc.c b/src/usb_func/device/usbdmsc.c
index 312d724..2a6e293 100644
--- a/src/usb_func/device/usbdmsc.c
+++ b/src/usb_func/device/usbdmsc.c
@@ -567,7 +567,7 @@ USBDMSCMediaChange(void *pvInstance, tUSBDMSCMediaStatus eMediaStatus)
567 /* 567 /*
568 * Create a device instance pointer. 568 * Create a device instance pointer.
569 */ 569 */
570 psDevice = pvInstance; 570 psDevice = (tUSBDMSCDevice*)pvInstance;
571 571
572 /* 572 /*
573 * Save the current media status. 573 * Save the current media status.
@@ -591,7 +591,7 @@ HandleEndpoints(struct usbGadgetObj *pUsbGadgetObj,
591 * the meaning of ulIndex is different in both cases. 591 * the meaning of ulIndex is different in both cases.
592 */ 592 */
593 593
594 psDevice = pUsbGadgetObj->usbClass.privateData; 594 psDevice = (tUSBDMSCDevice*)pUsbGadgetObj->usbClass.privateData;
595 /* 595 /*
596 * Initialize the workspace in the passed instance structure. 596 * Initialize the workspace in the passed instance structure.
597 */ 597 */