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

Comparing ray/src/hd/rhcopy.c (file contents):
Revision 3.2 by gregl, Thu Dec 18 10:03:29 1997 UTC vs.
Revision 3.3 by gregl, Tue Jan 6 05:57:07 1998 UTC

# Line 91 | Line 91 | int    append;
91          FILE    *fp;
92          int     fd;
93          int     hflags = 0;
94 <        int4    nextloc;
94 >        long    nextloc;
95          int     n;
96                                          /* open holodeck file */
97          if ((fp = fopen(fname, append ? "r+" : "r")) == NULL) {
# Line 109 | Line 109 | int    append;
109          nextloc = ftell(fp);                    /* get stdio position */
110          fclose(fp);                             /* done with stdio */
111          for (n = 0; nextloc > 0L; n++) {        /* initialize each section */
112 <                lseek(fd, (long)nextloc, 0);
112 >                lseek(fd, nextloc, 0);
113                  read(fd, (char *)&nextloc, sizeof(nextloc));
114                  hdinit(fd, NULL)->priv = hflags&H_OBST ? &obstr :
115                                  hflags&H_OBSF ? &unobstr : (char *)NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines