summaryrefslogtreecommitdiff
path: root/usr.bin/oldrdist
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 22:37:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-16 22:37:29 +0000
commit671eb09064e27e6775073eb916c2d8a3b50b838b (patch)
tree48bac603b36f0cbc8962a6574de26e6e409a5970 /usr.bin/oldrdist
parent49d2b2dd0e609c23039b95a0aca2d94075f0eb16 (diff)
time(NULL) looks better than time(0)
Diffstat (limited to 'usr.bin/oldrdist')
-rw-r--r--usr.bin/oldrdist/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/oldrdist/server.c b/usr.bin/oldrdist/server.c
index a291e97841b..a723df98d9b 100644
--- a/usr.bin/oldrdist/server.c
+++ b/usr.bin/oldrdist/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.32 2009/10/27 23:59:41 deraadt Exp $ */
+/* $OpenBSD: server.c,v 1.33 2013/04/16 22:37:28 deraadt Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -947,7 +947,7 @@ differ: buf[0] = '\0';
/*
* Set last modified time
*/
- tvp[0].tv_sec = time(0);
+ tvp[0].tv_sec = time(NULL);
tvp[0].tv_usec = 0;
tvp[1].tv_sec = mtime;
tvp[1].tv_usec = 0;