Skip to content

Commit

Permalink
schema MAINTENANCE code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrejci committed Jan 28, 2021
1 parent 9a3823e commit 2d5f6df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/schema_compile_amend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ lysp_schema_nodeid_match(const struct lyxp_expr *exp, const struct lysp_module *

if (pnode) {
/* compare on the last parsed-only node */
if (pnode_mod != mod || ly_strncmp(pnode->name, name, name_len)) {
if ((pnode_mod != mod) || ly_strncmp(pnode->name, name, name_len)) {
return 0;
}
} else {
Expand Down
8 changes: 4 additions & 4 deletions src/tree_schema_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ lysp_node_musts_p(const struct lysp_node *node)
return NULL;
}

switch(node->nodetype) {
switch (node->nodetype) {
case LYS_CONTAINER:
return &((struct lysp_node_container *)node)->musts;
case LYS_LEAF:
Expand Down Expand Up @@ -1322,7 +1322,7 @@ lysp_node_when_p(const struct lysp_node *node)
return NULL;
}

switch(node->nodetype) {
switch (node->nodetype) {
case LYS_CONTAINER:
return &((struct lysp_node_container *)node)->when;
case LYS_CHOICE:
Expand Down Expand Up @@ -1478,7 +1478,7 @@ lysc_node_musts_p(const struct lysc_node *node)
return NULL;
}

switch(node->nodetype) {
switch (node->nodetype) {
case LYS_CONTAINER:
return &((struct lysc_node_container *)node)->musts;
case LYS_LEAF:
Expand Down Expand Up @@ -1520,7 +1520,7 @@ lysc_node_when_p(const struct lysc_node *node)
return NULL;
}

switch(node->nodetype) {
switch (node->nodetype) {
case LYS_CONTAINER:
return &((struct lysc_node_container *)node)->when;
case LYS_CHOICE:
Expand Down

0 comments on commit 2d5f6df

Please sign in to comment.