summaryrefslogtreecommitdiff
path: root/src/uptime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-03-28 18:15:16 +0000
committerJim Meyering <jim@meyering.net>2005-03-28 18:15:16 +0000
commit79c88de2ccbd89e9c97cdac84c53d36761d1a0c2 (patch)
tree41d0552ff734d05b299cc7e6b749c7677c2abe74 /src/uptime.c
parent31e6aa70e60e30c876e7c7b47b86b915b837d828 (diff)
downloadcoreutils-79c88de2ccbd89e9c97cdac84c53d36761d1a0c2.tar.xz
(print_uptime): Use NULL, not `0'.
Diffstat (limited to 'src/uptime.c')
-rw-r--r--src/uptime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uptime.c b/src/uptime.c
index 9516f0f20..35fc5b79d 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -1,5 +1,5 @@
/* GNU's uptime.
- Copyright (C) 1992-2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1992-2002, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -100,7 +100,7 @@ print_uptime (size_t n, const STRUCT_UTMP *this)
boot_time = UT_TIME_MEMBER (this);
++this;
}
- time_now = time (0);
+ time_now = time (NULL);
#if defined HAVE_PROC_UPTIME
if (uptime == 0)
#endif