diff options
author | Stephan Gatzka <stephan.gatzka@gmail.com> | 2014-12-21 07:44:11 +0100 |
---|---|---|
committer | Stephan Gatzka <stephan.gatzka@gmail.com> | 2014-12-21 07:44:11 +0100 |
commit | c6f136c7f51917b4803e5fa7934682286ab06255 (patch) | |
tree | 3f878982956875bc7856c57f743f9f88985ee854 | |
parent | 41692dfb4bfb87f6f841f1124483d88a95d9df22 (diff) | |
download | luasocket-c6f136c7f51917b4803e5fa7934682286ab06255.tar.gz luasocket-c6f136c7f51917b4803e5fa7934682286ab06255.tar.bz2 luasocket-c6f136c7f51917b4803e5fa7934682286ab06255.zip |
Make local function udp_strerror() static.
-rw-r--r-- | src/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ int udp_open(lua_State *L) | |||
131 | /*=========================================================================*\ | 131 | /*=========================================================================*\ |
132 | * Lua methods | 132 | * Lua methods |
133 | \*=========================================================================*/ | 133 | \*=========================================================================*/ |
134 | const char *udp_strerror(int err) { | 134 | static const char *udp_strerror(int err) { |
135 | /* a 'closed' error on an unconnected means the target address was not | 135 | /* a 'closed' error on an unconnected means the target address was not |
136 | * accepted by the transport layer */ | 136 | * accepted by the transport layer */ |
137 | if (err == IO_CLOSED) return "refused"; | 137 | if (err == IO_CLOSED) return "refused"; |