summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-17 10:59:54 +0000
committerJim Meyering <jim@meyering.net>2002-07-17 10:59:54 +0000
commit37bbc4c47f00c505871e2d979674f3fbcb4f3402 (patch)
tree7e4cd24ed14e6a5181bdcbfd6e65d603d394402b
parent54867713815b1b39d4dd1fb5fa756ecd18681d31 (diff)
downloadcoreutils-37bbc4c47f00c505871e2d979674f3fbcb4f3402.tar.xz
(print_uptime): Restore use of (equivalent, but
more readable) `>=' from Bruno's patch.
-rw-r--r--src/uptime.c2
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