Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
toml: replaced occurences of old keyRel
Browse files Browse the repository at this point in the history
Both could be replaced by a simple keyCmp call
  • Loading branch information
bauhaus93 committed Nov 28, 2019
1 parent 6de556a commit fa25438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/toml/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/toml/table_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa25438

Please sign in to comment.