Use String_eq wrapper instead of raw strcmp

This commit is contained in:
Christian Göttsche
2021-01-27 15:12:06 +01:00
committed by BenBE
parent 04cf590967
commit 69efa94f9f
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}