From 91522bbb10ff02050859795432a47a023ae9dae1 Mon Sep 17 00:00:00 2001 From: guenther Date: Mon, 15 Aug 2016 04:28:31 +0000 Subject: [PATCH] Trust the login_getcaptime() declaration and don't cast the arguments to their own expected type --- usr.bin/passwd/local_passwd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c index 91b49d23e78..4292b62ebc0 100644 --- a/usr.bin/passwd/local_passwd.c +++ b/usr.bin/passwd/local_passwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: local_passwd.c,v 1.47 2016/05/08 20:27:43 tim Exp $ */ +/* $OpenBSD: local_passwd.c,v 1.48 2016/08/15 04:28:31 guenther Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -97,8 +97,7 @@ local_passwd(char *uname, int authenticated) err(1, "pledge"); /* Reset password change time based on login.conf. */ - period = (time_t)login_getcaptime(lc, "passwordtime", - (quad_t)0, (quad_t)0); + period = (time_t)login_getcaptime(lc, "passwordtime", 0, 0); if (period > 0) { pw->pw_change = time(NULL) + period; } else { -- 2.20.1