summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-15 20:42:43 +0000
committerJim Meyering <jim@meyering.net>2002-07-15 20:42:43 +0000
commitb918fce9a6ae0bcda9dbfe5a5449d632d592228d (patch)
tree60df76c01d7f98024e0065d3939aee3714f596bb /src
parent02bdcf7646b376660fe5d09a9a886a1f6eb5ff5e (diff)
downloadcoreutils-b918fce9a6ae0bcda9dbfe5a5449d632d592228d.tar.xz
(print_uptime): Use STREQ in place of !strcmp.
Diffstat (limited to 'src')
-rw-r--r--src/uptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uptime.c b/src/uptime.c
index ce39fead0..b3351ef35 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -98,7 +98,7 @@ print_uptime (int n, const STRUCT_UTMP *this)
# if HAVE_PROC_UPTIME
if (uptime == 0)
# endif /* HAVE_PROC_UPTIME */
- if (!strcmp (this->ut_line, BOOT_MSG))
+ if (STREQ (this->ut_line, BOOT_MSG))
boot_time = UT_TIME_MEMBER (this);
#endif /* BOOT_MSG */
++this;