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

Comparing ray/src/hd/rhinfo.c (file contents):
Revision 3.7 by greg, Fri Jun 20 00:25:49 2003 UTC vs.
Revision 3.8 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   #ifndef NHBINS
12   #define NHBINS          12      /* number of histogram bins to use for stats */
# Line 56 | Line 57 | FILE   *fout;
57          nextloc = ftell(fp);                    /* get stdio position */
58          fclose(fp);                             /* done with stdio */
59          for (n = 0; nextloc > 0L; n++) {        /* get the section(s) */
60 <                lseek(fd, (off_t)nextloc, 0);
60 >                lseek(fd, (off_t)nextloc, SEEK_SET);
61                  read(fd, (char *)&nextloc, sizeof(nextloc));
62                  fprintf(fout, "Section %d:\n", n);
63                  hdsect = hdinit(fd, NULL);      /* load section directory */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines