diff options
| author | plunky <plunky@NetBSD.org> | 2011-08-31 16:24:54 +0000 |
|---|---|---|
| committer | plunky <plunky@NetBSD.org> | 2011-08-31 16:24:54 +0000 |
| commit | 4a1b34295eb5b40b5ca8a211ce311ce5416fa0e0 (patch) | |
| tree | 4319e3566c3b4d77340b76fc390a6035c8ca1014 /usr.bin/write | |
| parent | d785c5f22db8c6d4c65f4a9d5538a68c63d3363b (diff) | |
NULL does not need a cast
Diffstat (limited to 'usr.bin/write')
| -rw-r--r-- | usr.bin/write/write.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c index 9b0a1d056a1..7059b4c5460 100644 --- a/usr.bin/write/write.c +++ b/usr.bin/write/write.c @@ -1,4 +1,4 @@ -/* $NetBSD: write.c,v 1.25 2008/07/21 14:19:28 lukem Exp $ */ +/* $NetBSD: write.c,v 1.26 2011/08/31 16:24:58 plunky Exp $ */ /* * Copyright (c) 1989, 1993 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\ #if 0 static char sccsid[] = "@(#)write.c 8.2 (Berkeley) 4/27/95"; #else -__RCSID("$NetBSD: write.c,v 1.25 2008/07/21 14:19:28 lukem Exp $"); +__RCSID("$NetBSD: write.c,v 1.26 2011/08/31 16:24:58 plunky Exp $"); #endif #endif /* not lint */ @@ -242,7 +242,7 @@ do_write(int ttyfd, const char *mytty, const uid_t myuid) (void)strlcpy(host, "???", sizeof(host)); else host[sizeof(host) - 1] = '\0'; - now = time((time_t *)NULL); + now = time(NULL); nows = ctime(&now); nows[16] = '\0'; (void)printf("\r\n\a\a\aMessage from %s@%s on %s at %s ...\r\n", |
