summaryrefslogtreecommitdiffstats
path: root/firmware/usbstack/usb_storage.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-29 21:58:34 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-29 21:58:34 +0000
commit4c2126b5a8b0bea04d4c5ba8bee032f9bc0efbe0 (patch)
treee98a32588e3919908590b3c9ddac89dbc24caea3 /firmware/usbstack/usb_storage.c
parent6a6269ffd8dfaf921588bae47cd55716abb78abb (diff)
downloadrockbox-4c2126b5a8b0bea04d4c5ba8bee032f9bc0efbe0.tar.gz
rockbox-4c2126b5a8b0bea04d4c5ba8bee032f9bc0efbe0.tar.bz2
rockbox-4c2126b5a8b0bea04d4c5ba8bee032f9bc0efbe0.zip
usb PACK_DATA: use a static inline to enable type checking
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31467 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r--firmware/usbstack/usb_storage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index c156d80396..8d1b94bf7a 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -430,15 +430,15 @@ int usb_storage_get_config_descriptor(unsigned char *dest,int max_packet_size)
unsigned char *orig_dest = dest;
interface_descriptor.bInterfaceNumber = usb_interface;
- PACK_DATA(dest, interface_descriptor);
+ PACK_DATA(&dest, interface_descriptor);
endpoint_descriptor.wMaxPacketSize = max_packet_size;
endpoint_descriptor.bEndpointAddress = ep_in;
- PACK_DATA(dest, endpoint_descriptor);
+ PACK_DATA(&dest, endpoint_descriptor);
endpoint_descriptor.bEndpointAddress = ep_out;
- PACK_DATA(dest, endpoint_descriptor);
+ PACK_DATA(&dest, endpoint_descriptor);
return (dest - orig_dest);
}