diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-08-19 05:30:40 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-08-19 05:30:40 +0000 |
commit | 1eeab430a1244d6dbb5d00d0e07da10361bb3903 (patch) | |
tree | 02df524d75af0324d03a54829c47856c0a3ce1b3 | |
parent | afd8c2dfd172e34096c5cb91d3defcf394309fb5 (diff) | |
download | rockbox-1eeab430a1244d6dbb5d00d0e07da10361bb3903.tar.gz rockbox-1eeab430a1244d6dbb5d00d0e07da10361bb3903.zip |
Add const to usb_serial_send() buffer.
Flyspray: FS#10519
Author: Amaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22422 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/usbstack/usb_serial.c | 2 | ||||
-rw-r--r-- | firmware/usbstack/usb_serial.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c index 99b8bb2c3f..d36151afd1 100644 --- a/firmware/usbstack/usb_serial.c +++ b/firmware/usbstack/usb_serial.c | |||
@@ -169,7 +169,7 @@ static void sendout(void) | |||
169 | } | 169 | } |
170 | } | 170 | } |
171 | 171 | ||
172 | void usb_serial_send(unsigned char *data,int length) | 172 | void usb_serial_send(const unsigned char *data,int length) |
173 | { | 173 | { |
174 | int freestart, available_end_space, i; | 174 | int freestart, available_end_space, i; |
175 | 175 | ||
diff --git a/firmware/usbstack/usb_serial.h b/firmware/usbstack/usb_serial.h index 2701a96cd3..f1a603c4a3 100644 --- a/firmware/usbstack/usb_serial.h +++ b/firmware/usbstack/usb_serial.h | |||
@@ -32,7 +32,7 @@ void usb_serial_disconnect(void); | |||
32 | void usb_serial_transfer_complete(int ep,int dir, int status, int length); | 32 | void usb_serial_transfer_complete(int ep,int dir, int status, int length); |
33 | bool usb_serial_control_request(struct usb_ctrlrequest* req, unsigned char *dest); | 33 | bool usb_serial_control_request(struct usb_ctrlrequest* req, unsigned char *dest); |
34 | 34 | ||
35 | void usb_serial_send(unsigned char *data,int length); | 35 | void usb_serial_send(const unsigned char *data, int length); |
36 | 36 | ||
37 | #endif | 37 | #endif |
38 | 38 | ||