diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 19:24:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 19:24:56 +0000 |
commit | f4fd1a5df1c2cc4b370eed0755b652de8cf1dd3b (patch) | |
tree | 6e633fe5601d944cc1fa5f0c6d4ff20fef9b59d8 /usr.bin | |
parent | 6ee9a121a718e2b1724c426baf53f667621db4e5 (diff) |
remove casts to time_t * which are not needed
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rdistd/server.c | 4 | ||||
-rw-r--r-- | usr.bin/write/write.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/rdistd/server.c b/usr.bin/rdistd/server.c index 59b1a775ef4..77b1217eb73 100644 --- a/usr.bin/rdistd/server.c +++ b/usr.bin/rdistd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.23 2012/11/12 01:14:41 guenther Exp $ */ +/* $OpenBSD: server.c,v 1.24 2013/04/16 19:24:53 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -902,7 +902,7 @@ recvfile(char *new, opt_t opts, int mode, char *owner, char *group, * Perform utimes() after file is closed to make * certain OS's, such as NeXT 2.1, happy. */ - if (setfiletime(new, time((time_t *) 0), mtime) < 0) + if (setfiletime(new, time(NULL), mtime) < 0) message(MT_NOTICE, "%s: utimes failed: %s", new, SYSERR); /* 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", |