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

Comparing ray/src/common/fdate.c (file contents):
Revision 2.1 by greg, Wed Mar 10 19:39:54 1993 UTC vs.
Revision 2.2 by greg, Wed Sep 15 15:36:25 1993 UTC

# Line 12 | Line 12 | static char SCCSid[] = "$SunId$ LBL";
12   #include  <sys/stat.h>
13  
14  
15 < long
15 > unsigned long
16   fdate(fname)                            /* get file date */
17   char  *fname;
18   {
19          struct stat  sbuf;
20  
21          if (stat(fname, &sbuf) == -1)
22 <                return(-1);
22 >                return(0);
23  
24          return(sbuf.st_mtime);
25   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines