mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 02:31:06 +00:00
Replace all occurences of exit() in potential library code
by appropriate return values. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1301 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -196,7 +196,7 @@ static int pickit2_open(PROGRAMMER * pgm, char * port)
|
||||
fprintf(stderr,
|
||||
"%s: error: could not find PICkit2 with vid=0x%x pid=0x%x\n",
|
||||
progname, PICKIT2_VID, PICKIT2_PID);
|
||||
exit(1);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -218,7 +218,7 @@ static int pickit2_open(PROGRAMMER * pgm, char * port)
|
||||
fprintf(stderr,
|
||||
"%s: error: could not find PICkit2 with vid=0x%x pid=0x%x\n",
|
||||
progname, PICKIT2_VID, PICKIT2_PID);
|
||||
exit(1);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1340,8 +1340,6 @@ static int pickit2_nousb_open (struct programmer_t *pgm, char * name) {
|
||||
"%s: error: no usb support. Please compile again with libusb installed.\n",
|
||||
#endif
|
||||
progname);
|
||||
|
||||
exit(1);
|
||||
}
|
||||
|
||||
void pickit2_initpgm (PROGRAMMER * pgm)
|
||||
|
||||
Reference in New Issue
Block a user