summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-16 22:13:14 +0000
committerderaadt <deraadt@openbsd.org>2013-04-16 22:13:14 +0000
commit2b525172dfc648a28e24b6d7374043281df62cb7 (patch)
treebe33c1e1f61e4014b1fb5ef25dbf1caa9c74cba9
parenthandle large time_t variables; ok guenther (diff)
downloadwireguard-openbsd-2b525172dfc648a28e24b6d7374043281df62cb7.tar.xz
wireguard-openbsd-2b525172dfc648a28e24b6d7374043281df62cb7.zip
remove unneccessary time_t * cast
-rw-r--r--bin/ksh/mail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/mail.c b/bin/ksh/mail.c
index 9f6c1eda45c..407e7ddfcdf 100644
--- a/bin/ksh/mail.c
+++ b/bin/ksh/mail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mail.c,v 1.15 2005/03/30 17:16:37 deraadt Exp $ */
+/* $OpenBSD: mail.c,v 1.16 2013/04/16 22:13:14 deraadt Exp $ */
/*
* Mailbox checking code by Robert J. Gibson, adapted for PD ksh by
@@ -43,7 +43,7 @@ mcheck(void)
struct tbl *vp;
struct stat stbuf;
- now = time((time_t *) 0);
+ now = time(NULL);
if (mlastchkd == 0)
mlastchkd = now;
if (now - mlastchkd >= mailcheck_interval) {