mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Use String_eq wrapper instead of raw strcmp
This commit is contained in:

committed by
BenBE

parent
04cf590967
commit
69efa94f9f
@ -138,7 +138,7 @@ int Platform_getUptime() {
|
||||
struct utmpx* ent;
|
||||
|
||||
while (( ent = getutxent() )) {
|
||||
if ( !strcmp("system boot", ent->ut_line )) {
|
||||
if ( String_eq("system boot", ent->ut_line )) {
|
||||
boot_time = ent->ut_tv.tv_sec;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user