Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[config] Reverse the meaning of config_value_changed() return value
Having a predicate function with name xxx_changed() that returns a non-zero value when nothing has changed is confusing. Switch the return value meaning so that non-zero means there is a difference and zero that there is not. Also treat old value of NULL and new value of NULL as no change. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
7 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters