Commit 7b17158f authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

remove unused variables.

parent a09858af
......@@ -36,8 +36,7 @@ static mrb_value
mrb_addrinfo_getaddrinfo(mrb_state *mrb, mrb_value klass)
{
struct addrinfo hints, *res0, *res;
struct sockaddr_un sock_un;
mrb_value ai, ary, family, lastai, nodename, protocol, s, sa, service, socktype;
mrb_value ai, ary, family, lastai, nodename, protocol, sa, service, socktype;
mrb_int flags;
int arena_idx, error;
const char *hostname = NULL, *servname = NULL;
......@@ -45,8 +44,6 @@ mrb_addrinfo_getaddrinfo(mrb_state *mrb, mrb_value klass)
ary = mrb_ary_new(mrb);
arena_idx = mrb_gc_arena_save(mrb); /* ary must be on arena! */
s = mrb_str_new(mrb, (void *)&sock_un, sizeof(sock_un));
family = socktype = protocol = mrb_nil_value();
flags = 0;
mrb_get_args(mrb, "oo|oooi", &nodename, &service, &family, &socktype, &protocol, &flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment