]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Return codes changed again..
authorJaroslav Kysela <perex@perex.cz>
Mon, 18 Jan 1999 21:20:59 +0000 (21:20 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 18 Jan 1999 21:20:59 +0000 (21:20 +0000)
alsactl/alsactl.c

index 4e7c24bb904e327110b98e4b5243ef1c6f207b94..d331e758e035d0c354ec2002f8b91f3639d7c37b 100644 (file)
@@ -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]);
        }