mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
Consitently use unsigned char for buffers to avoid warnings.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@492 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -178,7 +178,7 @@ static void usbdev_close(int fd)
|
||||
}
|
||||
|
||||
|
||||
static int usbdev_send(int fd, char *bp, size_t mlen)
|
||||
static int usbdev_send(int fd, unsigned char *bp, size_t mlen)
|
||||
{
|
||||
usb_dev_handle *udev = (usb_dev_handle *)fd;
|
||||
|
||||
@@ -213,11 +213,11 @@ usb_fill_buf(usb_dev_handle *udev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int usbdev_recv(int fd, char *buf, size_t nbytes)
|
||||
static int usbdev_recv(int fd, unsigned char *buf, size_t nbytes)
|
||||
{
|
||||
usb_dev_handle *udev = (usb_dev_handle *)fd;
|
||||
int i, amnt;
|
||||
char * p = buf;
|
||||
unsigned char * p = buf;
|
||||
|
||||
for (i = 0; nbytes > 0;)
|
||||
{
|
||||
|
Reference in New Issue
Block a user