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

Comparing ray/src/util/rfluxmtx.c (file contents):
Revision 2.21 by greg, Wed Feb 18 05:56:12 2015 UTC vs.
Revision 2.23 by greg, Wed Feb 18 06:18:38 2015 UTC

# Line 1350 | Line 1350 | main(int argc, char *argv[])
1350   #ifdef getc_unlocked
1351          flockfile(rcfp);
1352   #endif
1353 <        if (verbose) {
1353 >        if (verbose > 0) {
1354                  fprintf(stderr, "%s: sampling %d directions", progname, nsbins);
1355                  if (curparams.nsurfs > 1)
1356                          fprintf(stderr, " (%d elements)\n", curparams.nsurfs);
# Line 1360 | Line 1360 | main(int argc, char *argv[])
1360          for (i = 0; i < nsbins; i++)    /* send rcontrib ray samples */
1361                  if (!(*curparams.sample_basis)(&curparams, i, rcfp))
1362                          return(1);
1363 <        return(pclose(rcfp) == 0);      /* all finished! */
1363 >        return(pclose(rcfp) < 0);       /* all finished! */
1364   userr:
1365          if (a < argc-2)
1366                  fprintf(stderr, "%s: unsupported option '%s'", progname, argv[a]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines