diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-27 15:12:06 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-30 14:21:26 +0100 |
commit | 69efa94f9f44e00cea3e2d68a83717c0632d68fa (patch) | |
tree | 36b720f78ed31df30f3cff60ca278162a4f5bd65 /openbsd | |
parent | 04cf590967c7563972f89f02fd6fa52e13b9e9d9 (diff) |
Use String_eq wrapper instead of raw strcmp
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/Platform.c | 2 |
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; } } |