added module-revision Yang

This commit is contained in:
Olof hagsand 2019-03-19 11:55:44 +01:00
parent e8983a4be5
commit 0bf838eb8c
4 changed files with 401 additions and 10 deletions

View file

@ -716,7 +716,7 @@ yang_order(yang_stmt *y)
ypp = yp->yn_parent; /* yang spec */
for (i=0; i<ypp->yn_len; i++){ /* iterate through other modules */
ym = ypp->yn_stmt[i];
if (yp == ym)
if (yp == (yang_node*)ym)
break;
tot += ym->ys_len;
}