diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 22:37:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 22:37:29 +0000 |
commit | 671eb09064e27e6775073eb916c2d8a3b50b838b (patch) | |
tree | 48bac603b36f0cbc8962a6574de26e6e409a5970 | |
parent | 49d2b2dd0e609c23039b95a0aca2d94075f0eb16 (diff) |
time(NULL) looks better than time(0)
-rw-r--r-- | usr.bin/oldrdist/server.c | 4 |
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; |