-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4588298
commit 61376c5
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 9fec68911769736ab2595fda911a835e5c21633b Mon Sep 17 00:00:00 2001 | ||
From: Martin Lund <[email protected]> | ||
Date: Sun, 15 Sep 2024 05:57:31 +0200 | ||
Subject: [PATCH] Fix name declaration conflict with socket send() | ||
--- src/script.c | ||
+++ src/script.c | ||
@@ -181,7 +181,7 @@ static int modem_send(lua_State *L) | ||
} | ||
|
||
// lua: send(string) | ||
-static int send(lua_State *L) | ||
+static int send_(lua_State *L) | ||
{ | ||
const char *string = lua_tostring(L, 1); | ||
int ret; | ||
@@ -455,7 +455,7 @@ static const struct luaL_Reg tio_lib[] = | ||
{ "msleep", msleep}, | ||
{ "line_set", line_set}, | ||
{ "modem_send", modem_send}, | ||
- { "send", send}, | ||
+ { "send", send_}, | ||
{ "read", read_string}, | ||
{ "expect", expect}, | ||
{ "exit", exit_}, |