Skip to content

Commit 6d7c396

Browse files
committed
Adapt to libyang's "Change constness of the data returned by module implementation callbacks"
1 parent 35972df commit 6d7c396

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/session_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ static void free_with_user_data(void *data, void *user_data)
466466
(void)user_data;
467467
}
468468

469-
static char *
469+
static const char *
470470
retrieve_schema_data(const char *mod_name, const char *mod_rev, const char *submod_name, const char *sub_rev,
471471
void *user_data, LYS_INFORMAT *format, void (**free_module_data)(void *model_data, void *user_data))
472472
{
@@ -566,7 +566,7 @@ nc_ctx_load_module(struct nc_session *session, const char *name, const char *rev
566566
{
567567
int ret = 0;
568568
struct ly_err_item *eitem;
569-
char *module_data = NULL;
569+
const char *module_data = NULL;
570570
LYS_INFORMAT format;
571571
void (*free_module_data)(void*, void*) = NULL;
572572
struct clb_data_s clb_data;

0 commit comments

Comments
 (0)