summaryrefslogtreecommitdiffstats
path: root/openbsd
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 /openbsd
parent04cf590967c7563972f89f02fd6fa52e13b9e9d9 (diff)
Use String_eq wrapper instead of raw strcmp
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index e3a14894..84a5e3d0 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -302,7 +302,7 @@ static bool findDevice(const char* name, int* mib, struct sensordev* snsrdev, si
if (errno == ENOENT)
return false;
}
- if (strcmp(name, snsrdev->xname) == 0) {
+ if (String_eq(name, snsrdev->xname)) {
return true;
}
}

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