aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2015-03-03 19:01:00 -0300
committerDiego Nehab <diego.nehab@gmail.com>2015-03-03 19:01:00 -0300
commitbbcbbf845eca5a59419d1f092353fd4a3c980411 (patch)
tree5b6d2eedbb2077ad8b95bf27d6a1bea1cfc0792c /src/udp.c
parent8396a0291b2d97bc837c4c55bb99f7f6777ce515 (diff)
parentd8f77cca6456cbd5f0e34460aa9d379c0ac06740 (diff)
downloadluasocket-bbcbbf845eca5a59419d1f092353fd4a3c980411.tar.gz
luasocket-bbcbbf845eca5a59419d1f092353fd4a3c980411.tar.bz2
luasocket-bbcbbf845eca5a59419d1f092353fd4a3c980411.zip
Merge pull request #119 from gatzka/master
Make casts const correct.
Diffstat (limited to 'src/udp.c')
-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";