From 940c7ca1ace93cc57925d3a08babbf9791d69e9f Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 30 Aug 2005 04:44:29 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ usb_libusb.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 243dc868..4f80bec1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-08-30 Joerg Wunsch + + * usb_libusb.c: Consistently use unsigned char for buffers. + 2005-08-28 Joerg Wunsch * avrdude.conf.in: Add support for the ATtiny25/45/85. Note that diff --git a/usb_libusb.c b/usb_libusb.c index d53d04b9..e801e727 100644 --- a/usb_libusb.c +++ b/usb_libusb.c @@ -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;) {