Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
419f5e33
Commit
419f5e33
authored
Mar 02, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code:
VLC never resolves network service names, it only uses port numbers.
parent
abb46dc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
26 deletions
+4
-26
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+4
-26
No files found.
src/network/getaddrinfo.c
View file @
419f5e33
...
...
@@ -204,31 +204,9 @@ __getnameinfo( const struct sockaddr *sa, socklen_t salen,
if
(
serv
!=
NULL
)
{
struct
servent
*
sent
=
NULL
;
#ifndef SYS_BEOS
/* No getservbyport() */
int
solved
=
0
;
/* service name resolution */
if
(
!
(
flags
&
NI_NUMERICSERV
))
{
sent
=
getservbyport
(
addr
->
sin_port
,
(
flags
&
NI_DGRAM
)
?
"udp"
:
"tcp"
);
if
(
sent
!=
NULL
)
{
strlcpy
(
serv
,
sent
->
s_name
,
servlen
);
solved
=
1
;
}
}
if
(
sent
==
NULL
)
#endif
{
snprintf
(
serv
,
servlen
,
"%u"
,
(
unsigned
int
)
ntohs
(
addr
->
sin_port
));
serv
[
servlen
-
1
]
=
'\0'
;
}
snprintf
(
serv
,
servlen
,
"%u"
,
(
unsigned
int
)
ntohs
(
addr
->
sin_port
));
serv
[
servlen
-
1
]
=
'\0'
;
}
}
return
0
;
...
...
@@ -476,7 +454,7 @@ __getaddrinfo (const char *node, const char *service,
protocol
=
IPPROTO_UDP
;
break
;
#ifndef S
YS_BEOS
#ifndef S
OCK_RAW
case
SOCK_RAW
:
#endif
case
0
:
...
...
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