Consitently use unsigned char for buffers to avoid warnings.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@492 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2005-08-30 04:44:29 +00:00
parent 5b6506ff17
commit 6d420f9a61
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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;)
{