summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Lee <dlqs@gmx.com>2021-07-23 21:41:12 +0200
committerDonald Lee <dlqs@gmx.com>2021-07-23 21:41:40 +0200
commit36cf58c78594aed9fc79ab408d4a00e79e1ba483 (patch)
treead09f9e5f94f8d352938120c27f99631f41045fb
parentlib: zlog err in error cases during lua loading (diff)
downloadfrr-36cf58c78594aed9fc79ab408d4a00e79e1ba483.tar.xz
frr-36cf58c78594aed9fc79ab408d4a00e79e1ba483.zip
lib: Rename decode_int
Signed-off-by: Donald Lee <dlqs@gmx.com>
-rw-r--r--lib/frrlua.c2
-rw-r--r--lib/frrlua.h2
-rw-r--r--lib/frrscript.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 710d9ece0..5d0732eac 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -313,7 +313,7 @@ void lua_decode_noop(lua_State *L, int idx, const void *ptr)
/*
* Noop decoder for int.
*/
-void lua_decode_int_noop(lua_State *L, int idx, int i)
+void lua_decode_integer_noop(lua_State *L, int idx, int i)
{
}
diff --git a/lib/frrlua.h b/lib/frrlua.h
index d7668abca..98bff00fd 100644
--- a/lib/frrlua.h
+++ b/lib/frrlua.h
@@ -166,7 +166,7 @@ void *lua_tostringp(lua_State *L, int idx);
*/
void lua_decode_noop(lua_State *L, int idx, const void *ptr);
-void lua_decode_int_noop(lua_State *L, int idx, int i);
+void lua_decode_integer_noop(lua_State *L, int idx, int i);
/*
* Retrieve an integer from table on the top of the stack.
diff --git a/lib/frrscript.h b/lib/frrscript.h
index 905ffe162..fba124909 100644
--- a/lib/frrscript.h
+++ b/lib/frrscript.h
@@ -176,7 +176,7 @@ const struct prefix * : lua_pushprefix \
#define DECODE_ARGS_WITH_STATE(L, value) \
_Generic((value), \
-int : lua_decode_int_noop, \
+int : lua_decode_integer_noop, \
long long * : lua_decode_integerp, \
struct prefix * : lua_decode_prefix, \
struct interface * : lua_decode_interface, \