summaryrefslogtreecommitdiff
path: root/usr.bin/rdistd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 19:24:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 19:24:56 +0000
commitf4fd1a5df1c2cc4b370eed0755b652de8cf1dd3b (patch)
tree6e633fe5601d944cc1fa5f0c6d4ff20fef9b59d8 /usr.bin/rdistd
parent6ee9a121a718e2b1724c426baf53f667621db4e5 (diff)
remove casts to time_t * which are not needed
Diffstat (limited to 'usr.bin/rdistd')
-rw-r--r--usr.bin/rdistd/server.c4
1 files changed, 2 insertions, 2 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);
/*