Merge pull request #70 from scribblemaniac/fix-69

Fix missing #ifdefs
This commit is contained in:
cathugger 2022-03-20 23:27:04 +00:00 committed by GitHub
commit 0819ccd81d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
main.c
View file

@ -480,10 +480,12 @@ int main(int argc,char **argv)
exit(1); exit(1);
} }
#ifdef PASSPHRASE
if (checkpointfile && !deterministic) { if (checkpointfile && !deterministic) {
fprintf(stderr,"--checkpoint requires passphrase\n"); fprintf(stderr,"--checkpoint requires passphrase\n");
exit(1); exit(1);
} }
#endif
if (outfile) { if (outfile) {
fout = fopen(outfile,!outfileoverwrite ? "a" : "w"); fout = fopen(outfile,!outfileoverwrite ? "a" : "w");
@ -661,7 +663,7 @@ int main(int argc,char **argv)
perror("pthread_attr_destroy"); perror("pthread_attr_destroy");
} }
#if PASSPHRASE #ifdef PASSPHRASE
pthread_t checkpoint_thread; pthread_t checkpoint_thread;
if (checkpointfile) { if (checkpointfile) {