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

Comparing ray/src/hd/genrhgrid.c (file contents):
Revision 3.9 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.11 by greg, Fri Jun 6 19:11:21 2025 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include <stdio.h>
9 <
9 > #include "paths.h"
10   #include "platform.h"
11   #include "resolu.h"
12   #include "holo.h"
13  
14 char    *progname;              /* global argv[0] */
15
14   char    *mat, *name;            /* material and object id */
15   double  rad;                    /* grid line radius */
16  
# Line 29 | Line 27 | main(
27   {
28          int     sect;
29  
30 <        progname = argv[0];
30 >        fixargv0(argv[0]);
31          if ((argc < 5) | (argc > 6))
32                  goto userr;
33          mat = argv[1];
# Line 59 | Line 57 | gridsect(              /* get specified section(s) and print grids
57          int32   nextloc;
58          int     n;
59                                          /* open holodeck file */
60 <        if ((fp = fopen(fname, "r")) == NULL) {
60 >        if ((fp = fopen(fname, "rb")) == NULL) {
61                  sprintf(errmsg, "cannot open \"%s\"", fname);
62                  error(SYSTEM, errmsg);
63          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines