summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-27 15:12:06 +0100
committerBenBE <BenBE@geshi.org>2021-01-30 14:21:26 +0100
commit69efa94f9f44e00cea3e2d68a83717c0632d68fa (patch)
tree36b720f78ed31df30f3cff60ca278162a4f5bd65 /solaris
parent04cf590967c7563972f89f02fd6fa52e13b9e9d9 (diff)
Use String_eq wrapper instead of raw strcmp
Diffstat (limited to 'solaris')
-rw-r--r--solaris/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c
index 45f16238..b3c83312 100644
--- a/solaris/Platform.c
+++ b/solaris/Platform.c
@@ -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;
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy