diff options
author | Balint Reczey <balint.reczey@canonical.com> | 2019-06-23 22:06:37 +0200 |
---|---|---|
committer | Balint Reczey <balint.reczey@canonical.com> | 2019-06-23 22:06:37 +0200 |
commit | b28d45d2bd2462414b9dbbe38e6c7f3d5f7b462b (patch) | |
tree | 4b068e3513ef5c60228cddfcda72be0a31d09b14 /libmisc/pwd2spwd.c | |
parent | b0729855e8fb744192a0395ea24673557818172c (diff) | |
download | shadow-b28d45d2bd2462414b9dbbe38e6c7f3d5f7b462b.tar.gz |
New upstream version 4.7upstream/4.7
Diffstat (limited to 'libmisc/pwd2spwd.c')
-rw-r--r-- | libmisc/pwd2spwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmisc/pwd2spwd.c b/libmisc/pwd2spwd.c index c1b9b29a..6799dd50 100644 --- a/libmisc/pwd2spwd.c +++ b/libmisc/pwd2spwd.c @@ -40,7 +40,6 @@ #include "prototypes.h" #include "defines.h" #include <pwd.h> -extern time_t time (time_t *); /* * pwd_to_spwd - create entries for new spwd structure @@ -66,7 +65,7 @@ struct spwd *pwd_to_spwd (const struct passwd *pw) */ sp.sp_min = 0; sp.sp_max = (10000L * DAY) / SCALE; - sp.sp_lstchg = (long) time ((time_t *) 0) / SCALE; + sp.sp_lstchg = (long) gettime () / SCALE; if (0 == sp.sp_lstchg) { /* Better disable aging than requiring a password * change */ |