]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Rename decode_int
authorDonald Lee <dlqs@gmx.com>
Fri, 23 Jul 2021 19:41:12 +0000 (03:41 +0800)
committerDonald Lee <dlqs@gmx.com>
Fri, 23 Jul 2021 19:41:40 +0000 (03:41 +0800)
Signed-off-by: Donald Lee <dlqs@gmx.com>
lib/frrlua.c
lib/frrlua.h
lib/frrscript.h

index 710d9ece00195cc59acffbea389e548302e7fc6b..5d0732eac0c5853fcc92e9a7c0049127b0920d4b 100644 (file)
@@ -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)
 {
 }
 
index d7668abca0f87b67beec9cb6051b5653e2766da6..98bff00fd60af9d9366f812abfcd8e6aef806bd1 100644 (file)
@@ -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.
index 905ffe16238498a27fb9e40acdf05f04d9486c2d..fba124909adf378f76e4e14b2a21a01373ac062f 100644 (file)
@@ -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,                      \