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
fe1fdaf5
Commit
fe1fdaf5
authored
Jun 01, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify AI_NUMERICSERV usage
parent
3527f69d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
include/vlc_network.h
include/vlc_network.h
+1
-3
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+0
-4
No files found.
include/vlc_network.h
View file @
fe1fdaf5
...
...
@@ -40,7 +40,6 @@
# include <ws2tcpip.h>
# define ENETUNREACH WSAENETUNREACH
# define net_errno (WSAGetLastError())
# define AI_NUMERICSERV 0
extern
const
char
*
net_strerror
(
int
val
);
struct
iovec
...
...
@@ -274,9 +273,8 @@ struct addrinfo
# define AI_NUMERICHOST 4
# endif
/* if !HAVE_STRUCT_ADDRINFO */
/* Mac OS X doesn't define that one */
#ifndef AI_NUMERICSERV
#define AI_NUMERICSERV 0
#
define AI_NUMERICSERV 0
#endif
VLC_EXPORT
(
const
char
*
,
vlc_gai_strerror
,
(
int
)
);
...
...
src/network/getaddrinfo.c
View file @
fe1fdaf5
...
...
@@ -591,9 +591,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
AI_PASSIVE
|
AI_CANONNAME
|
AI_NUMERICHOST
|
#ifdef AI_NUMERICSERV
AI_NUMERICSERV
|
#endif
#ifdef AI_ALL
AI_ALL
|
#endif
...
...
@@ -615,10 +613,8 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
hints
.
ai_flags
=
p_hints
->
ai_flags
&
safe_flags
;
}
#ifdef AI_NUMERICSERV
/* We only ever use port *numbers* */
hints
.
ai_flags
|=
AI_NUMERICSERV
;
#endif
if
(
hints
.
ai_family
==
AF_UNSPEC
)
{
...
...
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