mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(print_uptime): Use NULL, not `0'.
This commit is contained in:
1 parent
31e6aa70e6
commit
79c88de2cc
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user