pkgsrc/cross/avrdude/patches/patch-ad
wennmach fb54ce400f avrdude - Program for programming the on-chip memory of Atmel AVR CPUs
Submitted by Karl Janmar <karlj@mdstud.chalmers.se> in PR 22139,
with several changes by myself. Original package from FreeBSD.
2003-07-17 19:09:23 +00:00

30 lines
649 B
Text

$NetBSD: patch-ad,v 1.1.1.1 2003/07/17 19:09:23 wennmach Exp $
--- main.c.org Tue Jul 8 10:15:01 2003
+++ main.c Tue Jul 8 10:16:28 2003
@@ -103,8 +103,8 @@
*/
int getexitspecs(char *s, int *set, int *clr)
{
+ /*
char *cp;
-
while ((cp = strtok(s, ","))) {
if (strcmp(cp, "reset") == 0) {
*clr |= par_getpinmask(pgm->pinno[PIN_AVR_RESET]);
@@ -123,10 +123,11 @@
else {
return -1;
}
- s = 0; /* strtok() should be called with the actual string only once */
- }
+ s = 0; */ /* strtok() should be called with the actual string only once */
+ /* }
- return 0;
+ return 0; */
+ return -1;
}