[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.1 and 1.2

version 1.1, 1995/10/18 08:45:41 version 1.2, 1995/12/14 03:23:26
Line 1 
Line 1 
 /*      $NetBSD: arch.c,v 1.9 1995/06/14 15:18:46 christos Exp $        */  /*      $NetBSD: arch.c,v 1.11 1995/11/22 17:39:53 christos Exp $       */
   
 /*  /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.   * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
Line 42 
Line 42 
 #if 0  #if 0
 static char sccsid[] = "@(#)arch.c      5.7 (Berkeley) 12/28/90";  static char sccsid[] = "@(#)arch.c      5.7 (Berkeley) 12/28/90";
 #else  #else
 static char rcsid[] = "$NetBSD: arch.c,v 1.9 1995/06/14 15:18:46 christos Exp $";  static char rcsid[] = "$NetBSD: arch.c,v 1.11 1995/11/22 17:39:53 christos Exp $";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
   
Line 100 
Line 100 
 #include    <sys/param.h>  #include    <sys/param.h>
 #include    <ctype.h>  #include    <ctype.h>
 #include    <ar.h>  #include    <ar.h>
   #ifndef __svr4__
 #include    <ranlib.h>  #include    <ranlib.h>
   #endif
 #include    <stdio.h>  #include    <stdio.h>
 #include    <stdlib.h>  #include    <stdlib.h>
 #include    "make.h"  #include    "make.h"
Line 492 
Line 494 
                 strncpy(copy, member, AR_MAX_NAME_LEN);                  strncpy(copy, member, AR_MAX_NAME_LEN);
                 copy[AR_MAX_NAME_LEN] = '\0';                  copy[AR_MAX_NAME_LEN] = '\0';
             }              }
             if (he = Hash_FindEntry (&ar->members, copy))              if ((he = Hash_FindEntry (&ar->members, copy)) != NULL)
                 return ((struct ar_hdr *) Hash_GetValue (he));                  return ((struct ar_hdr *) Hash_GetValue (he));
             return ((struct ar_hdr *) NULL);              return ((struct ar_hdr *) NULL);
         }          }
Line 1031 
Line 1033 
     } else if ((gn->mtime > now) || (gn->mtime < gn->cmtime)) {      } else if ((gn->mtime > now) || (gn->mtime < gn->cmtime)) {
         oodate = TRUE;          oodate = TRUE;
     } else {      } else {
   #ifdef RANLIBMAG
         struct ar_hdr   *arhPtr;    /* Header for __.SYMDEF */          struct ar_hdr   *arhPtr;    /* Header for __.SYMDEF */
         int             modTimeTOC; /* The table-of-contents's mod time */          int             modTimeTOC; /* The table-of-contents's mod time */
   
Line 1052 
Line 1055 
             }              }
             oodate = TRUE;              oodate = TRUE;
         }          }
   #else
           oodata = FALSE;
   #endif
     }      }
     return (oodate);      return (oodate);
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2