libyang MAINTENANCE source code formatting
diff --git a/src/json.c b/src/json.c
index e52b3de..09b6303 100644
--- a/src/json.c
+++ b/src/json.c
@@ -170,7 +170,7 @@
* (one-char) entities and character references */
if (len + offset + 4 >= size) {
size_t increment;
- for (increment = BUFSIZE_STEP; len + offset + 4 >= size + increment; increment += BUFSIZE_STEP) ;
+ for (increment = BUFSIZE_STEP; len + offset + 4 >= size + increment; increment += BUFSIZE_STEP) {}
buf = ly_realloc(buf, size + increment);
LY_CHECK_ERR_RET(!buf, LOGMEM(jsonctx->ctx), LY_EMEM);
size += BUFSIZE_STEP;
diff --git a/src/tree_schema_helpers.c b/src/tree_schema_helpers.c
index 826cf30..4e759b2 100644
--- a/src/tree_schema_helpers.c
+++ b/src/tree_schema_helpers.c
@@ -1039,7 +1039,7 @@
/* submodule not present in the main module, get the input data and parse it */
if (!(ctx->flags & LY_CTX_PREFER_SEARCHDIRS)) {
- search_clb:
+search_clb:
if (ctx->imp_clb) {
const char *submodule_data = NULL;
LYS_INFORMAT format = LYS_IN_UNKNOWN;
@@ -1070,7 +1070,7 @@
goto search_file;
}
} else {
- search_file:
+search_file:
if (!(ctx->flags & LY_CTX_DISABLE_SEARCHDIRS)) {
/* submodule was not received from the callback or there is no callback set */
lys_module_localfile(ctx, inc->name,
@@ -1780,8 +1780,8 @@
const struct lysc_node *parent;
parent = schema;
- while (parent && !(parent->nodetype & (LYS_CONTAINER | LYS_LEAF | LYS_LEAFLIST | LYS_LIST | LYS_ANYDATA | LYS_RPC
- | LYS_ACTION | LYS_NOTIF))) {
+ while (parent && !(parent->nodetype & (LYS_CONTAINER | LYS_LEAF | LYS_LEAFLIST | LYS_LIST | LYS_ANYDATA | LYS_RPC |
+ LYS_ACTION | LYS_NOTIF))) {
parent = lysc_node_parent_full(parent);
}