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.5 by schorsch, Sun Jul 27 22:12:02 2003 UTC vs.
Revision 3.6 by greg, Mon Oct 20 16:01:55 2003 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include "holo.h"
9 + #include "platform.h"
10  
11   char    *progname;              /* global argv[0] */
12  
# Line 60 | Line 61 | int    sect;
61          nextloc = ftell(fp);                    /* get stdio position */
62          fclose(fp);                             /* done with stdio */
63          for (n = 0; nextloc > 0L; n++) {        /* get the section(s) */
64 <                lseek(fd, (off_t)nextloc, 0);
64 >                lseek(fd, (off_t)nextloc, SEEK_SET);
65                  read(fd, (char *)&nextloc, sizeof(nextloc));
66                  if ((sect < 0) | (n == sect)) {
67                          read(fd, (char *)&hdsect, sizeof(HDGRID));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines