From 6be4b18391e6fe15b8049ff8879f99ae81c99688 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Fri, 21 Aug 2020 13:33:38 +0200 Subject: [PATCH] Fixed: [Type / Endianism problem in yang_parse_file #128](https://github.com/clicon/clixon/issues/128) --- CHANGELOG.md | 1 + lib/src/clixon_yang_parse_lib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9abae496..9235e7d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ Users may have to change how they access the system ### Corrected Bugs +* Fixed: [Type / Endianism problem in yang_parse_file #128](https://github.com/clicon/clixon/issues/128) * Fixed: [(CLI) the description of a used grouping is shown instead of the encapsulating container #124](https://github.com/clicon/clixon/issues/124) * Uses/group and augments only copies *schemanodes*. This means reference/description/.. etc are not copied, the original is kept. Also, as a side-effect of the bugfix, a final cardinality sanity check is now made after all yang modifications, not only at the time the file is loaded. diff --git a/lib/src/clixon_yang_parse_lib.c b/lib/src/clixon_yang_parse_lib.c index f91c2ab4..92907a66 100644 --- a/lib/src/clixon_yang_parse_lib.c +++ b/lib/src/clixon_yang_parse_lib.c @@ -547,7 +547,7 @@ yang_parse_file(int fd, { char *buf = NULL; int i; - int c; + char c; int len; yang_stmt *ymod = NULL; int ret;