Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305891
b: refs/heads/master
c: 3c2a618
h: refs/heads/master
i:
  305889: dbfbce7
  305887: a89f2b3
v: v3
  • Loading branch information
Devendra Naga authored and Wim Van Sebroeck committed May 23, 2012
1 parent d217290 commit dfbc215
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2deca7365582b7568dbdd2c3d9eef7ac17d41fd6
refs/heads/master: 3c2a6186c1a69d647e3a48ad3f7f9078c451111e
9 changes: 6 additions & 3 deletions trunk/Documentation/watchdog/src/watchdog-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ int main(int argc, char *argv[])
ioctl(fd, WDIOC_SETOPTIONS, &flags);
fprintf(stderr, "Watchdog card disabled.\n");
fflush(stderr);
exit(0);
goto end;
} else if (!strncasecmp(argv[1], "-e", 2)) {
flags = WDIOS_ENABLECARD;
ioctl(fd, WDIOC_SETOPTIONS, &flags);
fprintf(stderr, "Watchdog card enabled.\n");
fflush(stderr);
exit(0);
goto end;
} else {
fprintf(stderr, "-d to disable, -e to enable.\n");
fprintf(stderr, "run by itself to tick the card.\n");
fflush(stderr);
exit(0);
goto end;
}
} else {
fprintf(stderr, "Watchdog Ticking Away!\n");
Expand All @@ -69,4 +69,7 @@ int main(int argc, char *argv[])
keep_alive();
sleep(1);
}
end:
close(fd);
return 0;
}

0 comments on commit dfbc215

Please sign in to comment.