From: Jim Meyering Date: Mon, 15 Jul 2002 20:42:43 +0000 (+0000) Subject: (print_uptime): Use STREQ in place of !strcmp. X-Git-Tag: FILEUTILS-4_1_10~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b918fce9a6ae0bcda9dbfe5a5449d632d592228d;p=thirdparty%2Fcoreutils.git (print_uptime): Use STREQ in place of !strcmp. --- diff --git a/src/uptime.c b/src/uptime.c index ce39fead05..b3351ef354 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;