Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8b27d7c2
Commit
8b27d7c2
authored
May 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gai_strerror replacement
parent
ff58efe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+4
-4
No files found.
src/network/getaddrinfo.c
View file @
8b27d7c2
...
...
@@ -62,8 +62,8 @@
#ifndef HAVE_GAI_STRERROR
static
const
struct
{
char
code
;
const
char
msg
[
41
]
int
code
;
const
char
msg
[
41
]
;
}
gai_errlist
[]
=
{
{
0
,
"Error 0"
},
...
...
@@ -79,7 +79,7 @@ static const struct
{
EAI_MEMORY
,
"Memory allocation failure"
},
{
EAI_OVERFLOW
,
"Buffer overflow"
},
{
EAI_SYSTEM
,
"System error"
},
{
0
,
NULL
}
{
0
,
""
},
};
static
const
char
gai_unknownerr
[]
=
"Unrecognized error number"
;
...
...
@@ -89,7 +89,7 @@ static const char gai_unknownerr[] = "Unrecognized error number";
****************************************************************************/
const
char
*
vlc_gai_strerror
(
int
errnum
)
{
for
(
unsigned
i
=
0
;
gai_errlist
[
i
].
msg
!=
NULL
;
i
++
)
for
(
unsigned
i
=
0
;
*
gai_errlist
[
i
].
msg
;
i
++
)
if
(
errnum
==
gai_errlist
[
i
].
code
)
return
gai_errlist
[
i
].
msg
;
...
...
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