Fix name declaration conflict with socket send()

This commit is contained in:
Martin Lund 2024-09-15 05:57:31 +02:00
parent 6c4b92270e
commit 9fec689117

View file

@ -181,7 +181,7 @@ static int modem_send(lua_State *L)
} }
// lua: send(string) // lua: send(string)
static int send(lua_State *L) static int send_(lua_State *L)
{ {
const char *string = lua_tostring(L, 1); const char *string = lua_tostring(L, 1);
int ret; int ret;
@ -455,7 +455,7 @@ static const struct luaL_Reg tio_lib[] =
{ "msleep", msleep}, { "msleep", msleep},
{ "line_set", line_set}, { "line_set", line_set},
{ "modem_send", modem_send}, { "modem_send", modem_send},
{ "send", send}, { "send", send_},
{ "read", read_string}, { "read", read_string},
{ "expect", expect}, { "expect", expect},
{ "exit", exit_}, { "exit", exit_},