blob: 4e5f5b03c442fce6b83dd598a10ce7f1d06967ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$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;
}
|