aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@impa.br>2013-06-04 16:26:49 +0800
committerDiego Nehab <diego@impa.br>2013-06-04 16:26:49 +0800
commitb1d1e721d1b325cacfc6342c696191730dea357d (patch)
tree93746b337e16c20b23ec7bd8dd532e9a50f9fb2f /src/options.c
parent802567b7deff65b0b8471ae4ba5c7873caef525f (diff)
downloadluasocket-b1d1e721d1b325cacfc6342c696191730dea357d.tar.gz
luasocket-b1d1e721d1b325cacfc6342c696191730dea357d.tar.bz2
luasocket-b1d1e721d1b325cacfc6342c696191730dea357d.zip
No need for inet_pton.
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/options.c b/src/options.c
index 55b65a7..8ac2a14 100644
--- a/src/options.c
+++ b/src/options.c
@@ -285,14 +285,6 @@ static int opt_ip6_setmembership(lua_State *L, p_socket ps, int level, int name)
285 if (!lua_isnil(L, -1)) { 285 if (!lua_isnil(L, -1)) {
286 if (lua_isnumber(L, -1)) { 286 if (lua_isnumber(L, -1)) {
287 val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1); 287 val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1);
288#if 0
289 } else if (lua_isstring(L, -1)) {
290 if (!(val.ipv6mr_interface = if_nametoindex(lua_tostring(L, -1)))) {
291 lua_pushnil(L);
292 lua_pushstring(L, "nonexistent interface");
293 return 2;
294 }
295#endif
296 } else 288 } else
297 luaL_argerror(L, -1, "number 'interface' field expected"); 289 luaL_argerror(L, -1, "number 'interface' field expected");
298 } 290 }