mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 20:38:22 +01:00
Make local function udp_strerror() static.
This commit is contained in:
parent
41692dfb4b
commit
c6f136c7f5
@ -131,7 +131,7 @@ int udp_open(lua_State *L)
|
|||||||
/*=========================================================================*\
|
/*=========================================================================*\
|
||||||
* Lua methods
|
* Lua methods
|
||||||
\*=========================================================================*/
|
\*=========================================================================*/
|
||||||
const char *udp_strerror(int err) {
|
static const char *udp_strerror(int err) {
|
||||||
/* a 'closed' error on an unconnected means the target address was not
|
/* a 'closed' error on an unconnected means the target address was not
|
||||||
* accepted by the transport layer */
|
* accepted by the transport layer */
|
||||||
if (err == IO_CLOSED) return "refused";
|
if (err == IO_CLOSED) return "refused";
|
||||||
|
Loading…
Reference in New Issue
Block a user