diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-17 10:59:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-17 10:59:54 +0000 |
commit | 37bbc4c47f00c505871e2d979674f3fbcb4f3402 (patch) | |
tree | 7e4cd24ed14e6a5181bdcbfd6e65d603d394402b | |
parent | 54867713815b1b39d4dd1fb5fa756ecd18681d31 (diff) | |
download | coreutils-37bbc4c47f00c505871e2d979674f3fbcb4f3402.tar.xz |
(print_uptime): Restore use of (equivalent, but
more readable) `>=' from Bruno's patch.
-rw-r--r-- | src/uptime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uptime.c b/src/uptime.c index 9d6df3514..5c644c4c0 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -92,7 +92,7 @@ print_uptime (int n, const STRUCT_UTMP *this) struct timeval result; size_t result_len = sizeof result; - if (0 <= sysctl (request, 2, &result, &result_len, NULL, 0)) + if (sysctl (request, 2, &result, &result_len, NULL, 0) >= 0) boot_time = result.tv_sec; } #endif |