Fix bugs found through compiler warnings

This commit is contained in:
Don Gagne
2014-06-29 12:01:43 -07:00
parent 94c69e11ae
commit d5b5dcef24
10 changed files with 33 additions and 14 deletions
+2 -1
View File
@@ -189,7 +189,8 @@ int gpio_led_main(int argc, char *argv[])
} else if (!strcmp(argv[1], "stop")) {
if (gpio_led_started) {
gpio_led_started = false;
warnx("stop");
// FIXME: Is this correct? changed from warnx
errx(0, "stop");
} else {
errx(1, "not running");