summaryrefslogtreecommitdiff
path: root/lib/frrlua.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-08-02 11:56:42 +0300
committerGitHub <noreply@github.com>2023-08-02 11:56:42 +0300
commit7e2130bb03aa8d8675d865badd46cc33feeb19e2 (patch)
treee1a55eb11934893adc4eb609778615c19f26aece /lib/frrlua.c
parent728976960bc669594e670c08de3b13779fdb06d8 (diff)
parent85728c9c4fddb1b62b4bf83ffcf4d5e92000cceb (diff)
Merge pull request #14128 from FRRouting/mergify/bp/stable/9.0/pr-14125
lib: Do not use time_t as a special Lua encoder/decoder (backport #14125)
Diffstat (limited to 'lib/frrlua.c')
-rw-r--r--lib/frrlua.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/frrlua.c b/lib/frrlua.c
index 5b49d32a9c..e626efe20b 100644
--- a/lib/frrlua.c
+++ b/lib/frrlua.c
@@ -259,25 +259,6 @@ void *lua_tosockunion(lua_State *L, int idx)
return su;
}
-void lua_pushtimet(lua_State *L, const time_t *time)
-{
- lua_pushinteger(L, *time);
-}
-
-void lua_decode_timet(lua_State *L, int idx, time_t *t)
-{
- *t = lua_tointeger(L, idx);
- lua_pop(L, 1);
-}
-
-void *lua_totimet(lua_State *L, int idx)
-{
- time_t *t = XCALLOC(MTYPE_SCRIPT_RES, sizeof(time_t));
-
- lua_decode_timet(L, idx, t);
- return t;
-}
-
void lua_pushintegerp(lua_State *L, const long long *num)
{
lua_pushinteger(L, *num);