Revert strcmp->str_eq replacement

I screwed up here and didn't realize the importance of the negative return value here
This commit is contained in:
MCUdude
2023-04-21 14:06:33 +02:00
parent b0ca8b6d75
commit 7a1c245b1a

View File

@@ -832,9 +832,9 @@ char *cfg_escape(const char *s) {
static int cmp_comp(const void *v1, const void *v2) {
const Component_t *c1 = v1, *c2 = v2;
int ret = str_eq(c1->name, c2->name);
int ret = strcmp(c1->name, c2->name);
return ret? c1->strct - c2->strct: ret;
return ret? ret: c1->strct - c2->strct;
}
Component_t *cfg_comp_search(const char *name, int strct) {