projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02bdcf7
)
(print_uptime): Use STREQ in place of !strcmp.
author
Jim Meyering
<jim@meyering.net>
Mon, 15 Jul 2002 20:42:43 +0000
(20:42 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 15 Jul 2002 20:42:43 +0000
(20:42 +0000)
src/uptime.c
patch
|
blob
|
history
diff --git
a/src/uptime.c
b/src/uptime.c
index
ce39fea
..
b3351ef
100644
(file)
--- 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;