Skip to content

Commit c6bcd2d

Browse files
committed
cmake UPDATE libyang updates
1 parent 4a35833 commit c6bcd2d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ set(LIBNETCONF2_SOVERSION_FULL ${LIBNETCONF2_MAJOR_SOVERSION}.${LIBNETCONF2_MINO
7171
set(LIBNETCONF2_SOVERSION ${LIBNETCONF2_MAJOR_SOVERSION})
7272

7373
# Version of libyang library that this project depends on
74-
set(LIBYANG_DEP_VERSION 4.0.0)
75-
set(LIBYANG_DEP_SOVERSION 4.0.0)
74+
set(LIBYANG_DEP_VERSION 4.2.0)
75+
set(LIBYANG_DEP_SOVERSION 4.2.0)
7676
set(LIBYANG_DEP_SOVERSION_MAJOR 4)
7777

7878
# global C flags

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ nc_write_msg_io(struct nc_session *session, int io_timeout, int type, ...)
868868
}
869869

870870
/* rpc data */
871-
if (lyd_print_clb(nc_write_xmlclb, (void *)&arg, op, LYD_XML, LYD_PRINT_SHRINK | LYD_PRINT_KEEPEMPTYCONT)) {
871+
if (lyd_print_clb(nc_write_xmlclb, (void *)&arg, op, LYD_XML, LYD_PRINT_SHRINK | LYD_PRINT_EMPTY_CONT)) {
872872
ret = NC_MSG_ERROR;
873873
goto cleanup;
874874
}

src/session_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ retrieve_module_data_getschema(const char *name, const char *rev, struct clb_dat
485485
model_data = strdup(get_schema_data->value.str);
486486
break;
487487
case LYD_ANYDATA_DATATREE:
488-
lyd_print_mem(&model_data, get_schema_data->value.tree, LYD_XML, LYD_PRINT_WITHSIBLINGS);
488+
lyd_print_mem(&model_data, get_schema_data->value.tree, LYD_XML, LYD_PRINT_SIBLINGS);
489489
break;
490490
case LYD_ANYDATA_JSON:
491491
ERRINT;

0 commit comments

Comments
 (0)