[BACK]Return to arch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/arch.c between version 1.33 and 1.34

version 1.33, 2000/09/14 13:46:44 version 1.34, 2000/09/14 13:52:41
Line 998 
Line 998 
  *      Return the modification time of a member of an archive.   *      Return the modification time of a member of an archive.
  *   *
  * Results:   * Results:
  *      TRUE if found.   *      The modification time (seconds).
  *   *
  * Side Effects:   * Side Effects:
  *      The mtime field of the given node is filled in with the value   *      The mtime field of the given node is filled in with the value
  *      returned by the function.   *      returned by the function.
  *  
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 Boolean  TIMESTAMP
 Arch_MTime (gn)  Arch_MTime (gn)
     GNode         *gn;        /* Node describing archive member */      GNode         *gn;        /* Node describing archive member */
 {  {
Line 1015 
Line 1014 
     arhPtr = ArchStatMember(Varq_Value(ARCHIVE_INDEX, gn),      arhPtr = ArchStatMember(Varq_Value(ARCHIVE_INDEX, gn),
                              Varq_Value(MEMBER_INDEX, gn),                               Varq_Value(MEMBER_INDEX, gn),
                              TRUE);                               TRUE);
     if (arhPtr != NULL) {      if (arhPtr != NULL)
         gn->mtime = (time_t) strtol(arhPtr->ar_date, NULL, 10);          gn->mtime = (time_t) strtol(arhPtr->ar_date, NULL, 10);
         return TRUE;      else
     } else {  
         gn->mtime = OUT_OF_DATE;          gn->mtime = OUT_OF_DATE;
         return FALSE;      return gn->mtime;
     }  
 }  }
   
 /*-  /*-

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34