mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-25 02:02:57 -03:00
more tweaks
This commit is contained in:
parent
d9e4e12bdd
commit
bc19497f88
1 changed files with 11 additions and 10 deletions
21
main.c
21
main.c
|
@ -481,7 +481,7 @@ VEC_STRUCT(threadvec, pthread_t);
|
|||
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
char *outfile = 0;
|
||||
const char *outfile = 0;
|
||||
const char *arg;
|
||||
int ignoreargs = 0;
|
||||
int dirnameflag = 0;
|
||||
|
@ -622,7 +622,16 @@ int main(int argc,char **argv)
|
|||
if (numargit)
|
||||
goto nextarg;
|
||||
}
|
||||
else filters_add(arg);
|
||||
else
|
||||
filters_add(arg);
|
||||
}
|
||||
|
||||
if (outfile) {
|
||||
fout = fopen(outfile,"w");
|
||||
if (!fout) {
|
||||
perror("failed to open output file");
|
||||
exit(Q_FAILOPENOUTPUT);
|
||||
}
|
||||
}
|
||||
|
||||
filters_prepare();
|
||||
|
@ -641,14 +650,6 @@ int main(int argc,char **argv)
|
|||
fprintf(stderr,"WARNING: -N switch will produce bogus results because we can't know filter width. reconfigure with --enable-besort and recompile.\n");
|
||||
#endif
|
||||
|
||||
if (outfile) {
|
||||
fout = fopen(outfile,"w");
|
||||
if (!fout) {
|
||||
perror("failed to open output file");
|
||||
exit(Q_FAILOPENOUTPUT);
|
||||
}
|
||||
}
|
||||
|
||||
if (workdir)
|
||||
createdir(workdir,1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue