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

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.19 by greg, Thu Mar 1 08:19:01 1990 UTC vs.
Revision 1.20 by greg, Tue Mar 27 11:40:07 1990 UTC

# Line 182 | Line 182 | char  *zfile, *oldfile;
182                  if (write(zfd, (char *)zbar[0], hresolu*sizeof(float))
183                                  < hresolu*sizeof(float))
184                          goto writerr;
185 <                close(zfd);
185 >                if (close(zfd) == -1)
186 >                        goto writerr;
187                  for (i = 0; i <= psample; i++)
188                          free((char *)zbar[i]);
189          }
# Line 329 | Line 330 | int  x, y;                     /* pixel position */
330  
331          copycolor(col, thisray.rcol);           /* return color */
332          
333 <        return(thisray.rot);                    /* return distance */
333 >        return(thisray.rt);                     /* return distance */
334   }
335  
336  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines