localtime() needs a pointer to time_t which is not necessarily a long.
So use a time_t in the chdr structure so that no casts are required.
This commit is contained in:
parent
ae25b713c6
commit
56d73492e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33652
@ -77,7 +77,7 @@ typedef struct {
|
||||
/* Header structure internal format. */
|
||||
typedef struct {
|
||||
off_t size; /* size of the object in bytes */
|
||||
long date; /* date */
|
||||
time_t date; /* date */
|
||||
int lname; /* size of the long name in bytes */
|
||||
int gid; /* group */
|
||||
int uid; /* owner */
|
||||
|
Loading…
Reference in New Issue
Block a user