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

Comparing ray/src/hd/rhpict.c (file contents):
Revision 3.17 by schorsch, Thu Jan 1 11:21:55 2004 UTC vs.
Revision 3.19 by greg, Wed Mar 29 01:10:23 2017 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include "platform.h"
11   #include "rterror.h"
12   #include "rholo.h"
13 #include "view.h"
13  
14   char    *progname;              /* our program name */
15   char    *hdkfile;               /* holodeck file name */
# Line 286 | Line 285 | initialize(void)                       /* initialize holodeck and buffers
285          int     fd;
286          FILE    *fp;
287          int     n;
288 <        int32   nextloc;
288 >        off_t   nextloc;
289                                          /* open holodeck file */
290          if ((fp = fopen(hdkfile, "r")) == NULL) {
291                  sprintf(errmsg, "cannot open \"%s\" for reading", hdkfile);
# Line 304 | Line 303 | initialize(void)                       /* initialize holodeck and buffers
303          fd = dup(fileno(fp));                   /* dup file descriptor */
304          fclose(fp);                             /* done with stdio */
305          for (n = 0; nextloc > 0L; n++) {        /* initialize each section */
306 <                lseek(fd, (off_t)nextloc, SEEK_SET);
306 >                lseek(fd, nextloc, SEEK_SET);
307                  read(fd, (char *)&nextloc, sizeof(nextloc));
308                  hdinit(fd, NULL);
309          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines