Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
bc29813a
Commit
bc29813a
authored
Aug 12, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code (VLC only uses port numbers, not service names ever)
parent
42f6cf04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
27 deletions
+3
-27
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+3
-27
No files found.
src/network/getaddrinfo.c
View file @
bc29813a
...
...
@@ -402,34 +402,10 @@ getaddrinfo (const char *node, const char *service,
char
*
end
;
d
=
strtoul
(
service
,
&
end
,
0
);
if
(
end
[
0
]
/* service is not a number */
||
(
d
>
65535
))
{
struct
servent
*
entry
;
const
char
*
protoname
;
switch
(
protocol
)
{
case
IPPROTO_TCP
:
protoname
=
"tcp"
;
break
;
case
IPPROTO_UDP
:
protoname
=
"udp"
;
break
;
default:
protoname
=
NULL
;
}
entry
=
getservbyname
(
service
,
protoname
);
if
(
entry
==
NULL
)
return
EAI_SERVICE
;
if
(
end
[
0
]
||
(
d
>
65535u
))
return
EAI_SERVICE
;
port
=
entry
->
s_port
;
}
else
port
=
htons
((
u_short
)
d
);
port
=
htons
((
u_short
)
d
);
}
/* building results... */
...
...
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