mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix name declaration conflict with socket send()
This commit is contained in:
parent
6c4b92270e
commit
9fec689117
1 changed files with 2 additions and 2 deletions
|
|
@ -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_},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue