Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
7b17158f
Commit
7b17158f
authored
Dec 26, 2014
by
Tomoyuki Sahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused variables.
parent
a09858af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/socket.c
src/socket.c
+1
-4
No files found.
src/socket.c
View file @
7b17158f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment