diff --git a/src/plugins/toml/driver.c b/src/plugins/toml/driver.c index 5b3f971ff6e..d3893a7ab28 100644 --- a/src/plugins/toml/driver.c +++ b/src/plugins/toml/driver.c @@ -433,7 +433,7 @@ void driverExitTableArray (Driver * driver) } else // no relation, pop table array stack until some relation exists (or NULL) { - while (driver->tableArrayStack != NULL && keyRel (driver->tableArrayStack->key, driver->parentStack->key) < 0) + while (driver->tableArrayStack != NULL && keyCmp (driver->tableArrayStack->key, driver->parentStack->key) != 0) { driver->tableArrayStack = popTableArray (driver->tableArrayStack); } diff --git a/src/plugins/toml/table_array.c b/src/plugins/toml/table_array.c index e5a086a436d..d7aaac8799e 100644 --- a/src/plugins/toml/table_array.c +++ b/src/plugins/toml/table_array.c @@ -87,7 +87,7 @@ static char * getChildFraction (const Key * parent, const Key * child) snprintf (fraction, fracSize, "%s/%s", baseName, fracDup); elektraFree (fracDup); keyAddName (childDup, ".."); - } while (keyRel (parent, childDup) != 0); + } while (keyCmp (parent, childDup) != 0); fraction[elektraStrLen (fraction) - 2] = 0; keyDel (childDup); return fraction;