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

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