{
int ret = -1;
- frr_with_mutex(&running_config_mgmt_lock.mtx) {
+ frr_with_mutex (&running_config_mgmt_lock.mtx) {
if (!running_config_mgmt_lock.locked) {
running_config_mgmt_lock.locked = true;
running_config_mgmt_lock.owner_client = client;
{
int ret = -1;
- frr_with_mutex(&running_config_mgmt_lock.mtx) {
+ frr_with_mutex (&running_config_mgmt_lock.mtx) {
if (running_config_mgmt_lock.locked
&& running_config_mgmt_lock.owner_client == client
&& running_config_mgmt_lock.owner_user == user) {
{
int ret = -1;
- frr_with_mutex(&running_config_mgmt_lock.mtx) {
+ frr_with_mutex (&running_config_mgmt_lock.mtx) {
if (!running_config_mgmt_lock.locked
|| (running_config_mgmt_lock.owner_client == client
&& running_config_mgmt_lock.owner_user == user))
union nb_resource *resource;
int ret = NB_ERR;
-
if (event == NB_EV_VALIDATE)
resource = NULL;
else
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);
}
* 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.