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

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.34 by gregl, Wed May 28 17:22:52 1997 UTC vs.
Revision 2.36 by gwlarson, Thu Jun 18 09:23:49 1998 UTC

# Line 77 | Line 77 | int  verbose = 0;
77   unsigned  timelim = 0;
78   int  rvrlim = -1;
79  
80 extern long  lseek(), ftell();
81
80   int  gotalrm = 0;
81   int  onalrm() { gotalrm++; }
82  
# Line 124 | Line 122 | char  *argv[];
122                          case 'p':               /* pixel aspect ratio? */
123                                  if (argv[i][2] != 'a' || argv[i][3])
124                                          break;
125 <                                pixaspect = atof(argv[i+1]);
125 >                                pixaspect = atof(argv[++i]);
126                                  continue;
127                          case 'T':               /* time limit (hours) */
128                                  if (argv[i][2])
# Line 510 | Line 508 | int  xpos, ypos;
508                  filerr("lock");
509   #endif
510                                  /* write new piece to file */
511 <        if (lseek(outfd, fls.l_start, 0) == -1)
511 >        if (lseek(outfd, fls.l_start, 0) < 0)
512                  filerr("seek");
513          if (hmult == 1) {
514                  if (writebuf(outfd, (char *)pbuf,
# Line 523 | Line 521 | int  xpos, ypos;
521                                  filerr("write");
522                          if (y < vr-1 && lseek(outfd,
523                                          (long)(hmult-1)*hr*sizeof(COLR),
524 <                                        1) == -1)
524 >                                        1) < 0)
525                                  filerr("seek");
526                  }
527   #if NFS

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines