]> gitweb.hhaalo.de Git - discspan.git/commitdiff
change error exit with return
authorBastian Dehn <hhaalo@arcor.de>
Mon, 8 Sep 2025 14:16:51 +0000 (16:16 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 8 Sep 2025 14:16:51 +0000 (16:16 +0200)
src/discspan.c

index 594169c67928a8e371f8a8bf1b35a4ee9ea3ca35..fdfb8d333a779a750e8116e3d0db06fc6111b443 100644 (file)
@@ -98,12 +98,12 @@ int main(int argc, char *argv[])
                        || parameter.output == NULL
                        || parameter.split < 2048) {
                fprintf(stderr, "ERROR: missing arguments\n");
-               exit(1);
+               return 1;
        }
 
        if (access(parameter.input, F_OK) < 0) {
                fprintf(stderr, "ERROR: %s file does not exists\n", parameter.input);
-               exit(1);
+               return 1;
        }
 
        status_print = print_human_read_size;