aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Gatzka <stephan.gatzka@gmail.com>2014-12-21 07:44:11 +0100
committerStephan Gatzka <stephan.gatzka@gmail.com>2014-12-21 07:44:11 +0100
commitc6f136c7f51917b4803e5fa7934682286ab06255 (patch)
tree3f878982956875bc7856c57f743f9f88985ee854
parent41692dfb4bfb87f6f841f1124483d88a95d9df22 (diff)
downloadluasocket-c6f136c7f51917b4803e5fa7934682286ab06255.tar.gz
luasocket-c6f136c7f51917b4803e5fa7934682286ab06255.tar.bz2
luasocket-c6f136c7f51917b4803e5fa7934682286ab06255.zip
Make local function udp_strerror() static.
-rw-r--r--src/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udp.c b/src/udp.c
index a9f2393..12e320a 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -131,7 +131,7 @@ int udp_open(lua_State *L)
131/*=========================================================================*\ 131/*=========================================================================*\
132* Lua methods 132* Lua methods
133\*=========================================================================*/ 133\*=========================================================================*/
134const char *udp_strerror(int err) { 134static 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";