# | Line 364 | Line 364 | main(int argc, char *argv[]) | |
---|---|---|
364 | if (i < argc-1) | |
365 | goto userr; | |
366 | /* load input data */ | |
367 | < | if (i == argc-1 && freopen(argv[i], "rb", stdin) == NULL) { |
367 | > | if (i == argc-1 && freopen(argv[i], "r", stdin) == NULL) { |
368 | sprintf(errmsg, "cannot open input file '%s'", argv[i]); | |
369 | error(SYSTEM, errmsg); | |
370 | } | |
371 | if (infmt != 'a') | |
372 | SET_FILE_BINARY(stdin); | |
373 | + | #ifdef getc_unlocked /* avoid lock/unlock overhead */ |
374 | + | flockfile(stdin); |
375 | + | #endif |
376 | load_data(); | |
377 | if (recipavg) | |
378 | do_reciprocity(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |