ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rttree_reduce.c
(Generate patch)

Comparing ray/src/util/rttree_reduce.c (file contents):
Revision 2.8 by greg, Thu Oct 3 03:36:11 2013 UTC vs.
Revision 2.9 by greg, Mon Mar 17 01:59:48 2014 UTC

# 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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines