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:
parent
20f3be439c
commit
0f725dd0b0
|
@ -1,3 +1,7 @@
|
|||
2005-08-30 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* usb_libusb.c: Consistently use unsigned char for buffers.
|
||||
|
||||
2005-08-28 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||
|
||||
* avrdude.conf.in: Add support for the ATtiny25/45/85. Note that
|
||||
|
|
|
@ -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;)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue