Skip to content

Commit

Permalink
increase maximum allowed amount of workers.
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Jun 19, 2022
1 parent 146afa1 commit 1085ed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int main(int argc, char * argv[]) {
return 1;
}

if(access(output, F_OK) == 0) {
if (access(output, F_OK) == 0) {
if (!force) {
fprintf(stderr, "Error: output file already exists. Use -f to force overwrite.\n");
return 1;
Expand Down Expand Up @@ -263,7 +263,7 @@ int main(int argc, char * argv[]) {
return 1;
}

if(fread(byteswap_buf, 4, 1, input_des) != 1) {
if (fread(byteswap_buf, 4, 1, input_des) != 1) {
fprintf(stderr, "I/O error.\n");
return 1;
}
Expand All @@ -282,8 +282,8 @@ int main(int argc, char * argv[]) {
}

#ifdef PTHREAD
if (workers > 24 || workers < 0) {
fprintf(stderr, "Number of workers must be between 0 and 24.\n");
if (workers > 64 || workers < 0) {
fprintf(stderr, "Number of workers must be between 0 and 64.\n");
return 1;
}

Expand Down

0 comments on commit 1085ed5

Please sign in to comment.