summaryrefslogtreecommitdiffstats
path: root/lib/frrscript.c
diff options
context:
space:
mode:
authorDonald Lee <dlqs@gmx.com>2021-07-08 11:51:14 +0200
committerDonald Lee <dlqs@gmx.com>2021-07-18 00:32:03 +0200
commit64d457d7ac22d643afb5638bacb0b9713274689e (patch)
tree1ecc21f377cd98abb7d69b66f3bad4c6e90b95ad /lib/frrscript.c
parenttests: Add more examples to get_result (diff)
downloadfrr-64d457d7ac22d643afb5638bacb0b9713274689e.tar.xz
frr-64d457d7ac22d643afb5638bacb0b9713274689e.zip
lib: Rename frrscript_unload to delete
frrscript_load now loads a function instead of a file, so frrscript_unload should be renamed since it does not unload a function. Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'lib/frrscript.c')
-rw-r--r--lib/frrscript.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/frrscript.c b/lib/frrscript.c
index 8252455fd..b3f8a9f6f 100644
--- a/lib/frrscript.c
+++ b/lib/frrscript.c
@@ -319,7 +319,7 @@ fail:
return 1;
}
-void frrscript_unload(struct frrscript *fs)
+void frrscript_delete(struct frrscript *fs)
{
hash_iterate(fs->lua_function_hash, lua_function_free, NULL);
XFREE(MTYPE_SCRIPT, fs->name);