summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-11-02 17:03:30 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-11-02 17:03:30 +0000
commit096374689e96f4da4b606b6c651b6a8278d5b4b4 (patch)
tree9c3b3c6cf58e01e1af269be9acfc7057ccd66a95 /lib/libc
parent0e68704bbdb6c7438a6ac8d1904d6381468d63cd (diff)
(struct timezone *)NULL -> NULL
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/auth_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index 70c9160986e..4f133d5c46b 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.47 2015/10/23 04:52:21 guenther Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.48 2015/11/02 17:03:29 mmcc Exp $ */
/*
* Copyright (c) 2000-2002,2004 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -745,7 +745,7 @@ auth_check_expire(auth_session_t *as)
if (as->pwd && (quad_t)as->pwd->pw_expire != 0) {
if (as->now.tv_sec == 0)
- gettimeofday(&as->now, (struct timezone *)NULL);
+ gettimeofday(&as->now, NULL);
if ((quad_t)as->now.tv_sec >= (quad_t)as->pwd->pw_expire) {
as->state &= ~AUTH_ALLOW;
as->state |= AUTH_EXPIRED;
@@ -772,7 +772,7 @@ auth_check_change(auth_session_t *as)
if (as->pwd && (quad_t)as->pwd->pw_change) {
if (as->now.tv_sec == 0)
- gettimeofday(&as->now, (struct timezone *)NULL);
+ gettimeofday(&as->now, NULL);
if (as->now.tv_sec >= (quad_t)as->pwd->pw_change) {
as->state &= ~AUTH_ALLOW;
as->state |= AUTH_PWEXPIRED;