summaryrefslogtreecommitdiff
path: root/tools/gen_yang_deviations.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-10-22 22:19:10 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-10-23 18:18:22 -0300
commit8d869d378bf10ee02e4aed66c9c3c16f15fe0c26 (patch)
tree04dadc1e6681ffa3f4939da8367889d62f95cdb5 /tools/gen_yang_deviations.c
parent9bde0b256919ff3987ea60101229fec195324102 (diff)
lib: combine two YANG schema iteration functions into one
Combine yang_snodes_iterate_module() and yang_snodes_iterate_all() into an unified yang_snodes_iterate() function, where the first "module" parameter is optional. There's no point in having two separate YANG schema iteration functions anymore now that they are too similar. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tools/gen_yang_deviations.c')
-rw-r--r--tools/gen_yang_deviations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gen_yang_deviations.c b/tools/gen_yang_deviations.c
index f908e1fc69..53a53c943c 100644
--- a/tools/gen_yang_deviations.c
+++ b/tools/gen_yang_deviations.c
@@ -71,8 +71,8 @@ int main(int argc, char *argv[])
module = yang_module_load(argv[0]);
/* Generate deviations. */
- yang_snodes_iterate_module(module->info, generate_yang_deviation,
- YANG_ITER_FILTER_IMPLICIT, NULL);
+ yang_snodes_iterate(module->info, generate_yang_deviation,
+ YANG_ITER_FILTER_IMPLICIT, NULL);
/* Cleanup and exit. */
yang_terminate();