lib: northbound style fixes

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
Renato Westphal 2020-05-14 21:23:36 -03:00
parent c6a9c60f97
commit 1be4decb04
2 changed files with 7 additions and 8 deletions

View File

@ -962,7 +962,6 @@ static int nb_callback_configuration(const enum nb_event event,
union nb_resource *resource;
int ret = NB_ERR;
if (event == NB_EV_VALIDATE)
resource = NULL;
else
@ -1014,8 +1013,8 @@ static int nb_callback_configuration(const enum nb_event event,
break;
default:
flog_err(EC_LIB_DEVELOPMENT,
"%s: unknown event (%u) [xpath %s]",
__func__, event, xpath);
"%s: unknown event (%u) [xpath %s]", __func__,
event, xpath);
exit(1);
}

View File

@ -1044,8 +1044,8 @@ extern void *nb_running_unset_entry(const struct lyd_node *dnode);
* Returns:
* User pointer if found, NULL otherwise.
*/
extern void *nb_running_get_entry(const struct lyd_node *dnode, const char *xpath,
bool abort_if_not_found);
extern void *nb_running_get_entry(const struct lyd_node *dnode,
const char *xpath, bool abort_if_not_found);
/*
* Return a human-readable string representing a northbound event.