fix some ints that should be "time_t" per PR#4139
This commit is contained in:
parent
40c87730b3
commit
7eaeaff5f2
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: arch.c,v 1.21 1997/08/25 19:31:57 kleink Exp $ */
|
||||
/* $NetBSD: arch.c,v 1.22 1997/09/23 21:15:07 fair Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -43,7 +43,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: arch.c,v 1.21 1997/08/25 19:31:57 kleink Exp $");
|
||||
__RCSID("$NetBSD: arch.c,v 1.22 1997/09/23 21:15:07 fair Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -996,12 +996,12 @@ Arch_TouchLib (gn)
|
||||
*
|
||||
*-----------------------------------------------------------------------
|
||||
*/
|
||||
int
|
||||
time_t
|
||||
Arch_MTime (gn)
|
||||
GNode *gn; /* Node describing archive member */
|
||||
{
|
||||
struct ar_hdr *arhPtr; /* Header of desired member */
|
||||
int modTime; /* Modification time as an integer */
|
||||
time_t modTime; /* Modification time as an integer */
|
||||
char *p1, *p2;
|
||||
|
||||
arhPtr = ArchStatMember (Var_Value (ARCHIVE, gn, &p1),
|
||||
@ -1013,7 +1013,7 @@ Arch_MTime (gn)
|
||||
free(p2);
|
||||
|
||||
if (arhPtr != (struct ar_hdr *) NULL) {
|
||||
modTime = (int) strtol(arhPtr->ar_date, NULL, 10);
|
||||
modTime = (time_t) strtol(arhPtr->ar_date, NULL, 10);
|
||||
} else {
|
||||
modTime = 0;
|
||||
}
|
||||
@ -1036,7 +1036,7 @@ Arch_MTime (gn)
|
||||
*
|
||||
*-----------------------------------------------------------------------
|
||||
*/
|
||||
int
|
||||
time_t
|
||||
Arch_MemMTime (gn)
|
||||
GNode *gn;
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: make.h,v 1.17 1997/05/08 21:24:46 gwr Exp $ */
|
||||
/* $NetBSD: make.h,v 1.18 1997/09/23 21:15:08 fair Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -144,8 +144,8 @@ typedef struct GNode {
|
||||
* made */
|
||||
int unmade; /* The number of unmade children */
|
||||
|
||||
int mtime; /* Its modification time */
|
||||
int cmtime; /* The modification time of its youngest
|
||||
time_t mtime; /* Its modification time */
|
||||
time_t cmtime; /* The modification time of its youngest
|
||||
* child */
|
||||
|
||||
Lst iParents; /* Links to parents for which this is an
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nonints.h,v 1.13 1997/05/02 14:24:29 christos Exp $ */
|
||||
/* $NetBSD: nonints.h,v 1.14 1997/09/23 21:15:09 fair Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -44,8 +44,8 @@
|
||||
ReturnStatus Arch_ParseArchive __P((char **, Lst, GNode *));
|
||||
void Arch_Touch __P((GNode *));
|
||||
void Arch_TouchLib __P((GNode *));
|
||||
int Arch_MTime __P((GNode *));
|
||||
int Arch_MemMTime __P((GNode *));
|
||||
time_t Arch_MTime __P((GNode *));
|
||||
time_t Arch_MemMTime __P((GNode *));
|
||||
void Arch_FindLib __P((GNode *, Lst));
|
||||
Boolean Arch_LibOODate __P((GNode *));
|
||||
void Arch_Init __P((void));
|
||||
|
Loading…
Reference in New Issue
Block a user