diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c index 4e7c24b..d331e75 100644 --- a/alsactl/alsactl.c +++ b/alsactl/alsactl.c @@ -198,11 +198,11 @@ int main(int argc, char *argv[]) return 0; } if (!strcmp(argv[optind], "store")) { - return store_setup(argc - optind > 1 ? argv[optind + 1] : NULL) ? - 0 : 1; + return store_setup(argc - optind > 1 ? argv[optind + 1] : NULL) + 1 : 0; } else if (!strcmp(argv[optind], "restore")) { return restore_setup(argc - optind > 1 ? argv[optind + 1] : NULL) ? - 0 : 1; + 1 : 0; } else { fprintf(stderr, "alsactl: Unknown command '%s'...\n", argv[optind]); }