summaryrefslogtreecommitdiffstats
path: root/usr.bin/write/write.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-16 19:24:53 +0000
committerderaadt <deraadt@openbsd.org>2013-04-16 19:24:53 +0000
commit5f9b15b43d63f43e267376b5262912eca4dd4e9d (patch)
treeb39537238ca287459f0182db9ac7f068a885a06d /usr.bin/write/write.c
parentcannot inspect out_name via a time_t pointer; ok guenther (diff)
downloadwireguard-openbsd-5f9b15b43d63f43e267376b5262912eca4dd4e9d.tar.xz
wireguard-openbsd-5f9b15b43d63f43e267376b5262912eca4dd4e9d.zip
remove casts to time_t * which are not needed
Diffstat (limited to 'usr.bin/write/write.c')
-rw-r--r--usr.bin/write/write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c
index 02207705ad4..321bb42a5c0 100644
--- a/usr.bin/write/write.c
+++ b/usr.bin/write/write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: write.c,v 1.26 2009/10/27 23:59:50 deraadt Exp $ */
+/* $OpenBSD: write.c,v 1.27 2013/04/16 19:24:55 deraadt Exp $ */
/* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */
/*
@@ -252,7 +252,7 @@ do_write(char *tty, char *mytty, uid_t myuid)
/* print greeting */
if (gethostname(host, sizeof(host)) < 0)
(void)strlcpy(host, "???", sizeof host);
- now = time((time_t *)NULL);
+ now = time(NULL);
nows = ctime(&now);
nows[16] = '\0';
(void)printf("\r\n\007\007\007Message from %s@%s on %s at %s ...\r\n",