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.35 by gregl, Tue Jul 29 11:27:49 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 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