remove unused variables.

This commit is contained in:
Tomoyuki Sahara
2014-12-26 13:36:11 +09:00
parent a09858af61
commit 7b17158f88
+1 -4
View File
@@ -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);