diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2015-03-03 19:01:00 -0300 |
---|---|---|
committer | Diego Nehab <diego.nehab@gmail.com> | 2015-03-03 19:01:00 -0300 |
commit | bbcbbf845eca5a59419d1f092353fd4a3c980411 (patch) | |
tree | 5b6d2eedbb2077ad8b95bf27d6a1bea1cfc0792c /src/udp.c | |
parent | 8396a0291b2d97bc837c4c55bb99f7f6777ce515 (diff) | |
parent | d8f77cca6456cbd5f0e34460aa9d379c0ac06740 (diff) | |
download | luasocket-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.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"; |