mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove unused variables.
This commit is contained in:
+1
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user