Skip to content

Commit

Permalink
restored the correct word "iff";
Browse files Browse the repository at this point in the history
changed expression to be consistent with the rest of the code
  • Loading branch information
juh authored and mskucherawy committed Sep 6, 2017
1 parent 8282fae commit 9764e08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ arcf_config_new(void)
** err -- error string (returned)
**
** Return value:
** TRUE if the operation succeeded.
** TRUE iff the operation succeeded.
*/

_Bool
Expand Down Expand Up @@ -1266,7 +1266,7 @@ arcf_list_load(struct conflist *list, char *path, char **err)
** err -- error string (returned)
**
** Return value:
** TRUE if the operation succeeded.
** TRUE iff the operation succeeded.
*/

_Bool
Expand Down Expand Up @@ -1567,7 +1567,7 @@ arcf_config_load(struct config *data, struct arcf_config *conf,
char *dberr = NULL;

status = arcf_list_load(&conf->conf_peers, str, &dberr);
if (status != TRUE)
if (!status)
{
snprintf(err, errlen, "%s: arcf_list_load(): %s",
str, dberr);
Expand Down Expand Up @@ -1597,7 +1597,7 @@ arcf_config_load(struct config *data, struct arcf_config *conf,
char *dberr = NULL;

status = arcf_addlist(&conf->conf_peers, "127.0.0.1", &dberr);
if (status != TRUE)
if (!status)
{
snprintf(err, errlen, "%s: arcf_addlist(): %s",
str, dberr);
Expand Down

0 comments on commit 9764e08

Please sign in to comment.