* dfu.c (dfu_open, dfu_init): Fix signature of the dummy functions

(in the !HAVE_LIBUSB case) to match prototypes.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1303 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2014-05-16 16:02:29 +00:00
parent a13d8b1ecf
commit 96647f1486
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-05-16 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* dfu.c (dfu_open, dfu_init): Fix signature of the dummy functions
(in the !HAVE_LIBUSB case) to match prototypes.
2014-05-16 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2014-05-16 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* avr910.c: Replace all occurences of exit() in potential library * avr910.c: Replace all occurences of exit() in potential library

6
dfu.c
View File

@ -36,13 +36,13 @@
#ifndef HAVE_LIBUSB #ifndef HAVE_LIBUSB
int dfu_open(struct dfu_dev *dfu, char *port_name) { struct dfu_dev *dfu_open(char *port_name) {
fprintf(stderr, "%s: Error: No USB support in this compile of avrdude\n", fprintf(stderr, "%s: Error: No USB support in this compile of avrdude\n",
progname); progname);
return -1; return NULL;
} }
int dfu_init(struct dfu_dev *dfu, unsigned short usb_pid) { int dfu_init(struct dfu_dev *dfu, unsigned short usb_vid, unsigned short usb_pid) {
return -1; return -1;
} }