Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
5cdd8862
Commit
5cdd8862
authored
Sep 08, 2006
by
Rémi Denis-Courmont
Browse files
Well, this time maybe
parent
b6ab7590
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/network/error.c
View file @
5cdd8862
...
@@ -79,7 +79,7 @@ static const wsaerrmsg_t wsaerrmsg[] =
...
@@ -79,7 +79,7 @@ static const wsaerrmsg_t wsaerrmsg[] =
//WSAESTALE
//WSAESTALE
//WSAEREMOTE
//WSAEREMOTE
//WSAEDISCON
//WSAEDISCON
{
WSASYSNOTREADY
,
"Network stack not ready"
},
{
WSASYSNOTREADY
,
"Network stack not ready"
},
{
WSAVERNOTSUPPORTED
,
"Network stack version not supported"
},
{
WSAVERNOTSUPPORTED
,
"Network stack version not supported"
},
{
WSANOTINITIALISED
,
"Network not initialized"
},
{
WSANOTINITIALISED
,
"Network not initialized"
},
{
WSAHOST_NOT_FOUND
,
"Hostname not found"
},
{
WSAHOST_NOT_FOUND
,
"Hostname not found"
},
...
@@ -97,9 +97,9 @@ const char *net_strerror( int value )
...
@@ -97,9 +97,9 @@ const char *net_strerror( int value )
* Winsock errors. Some old versions had s_error, but it appears to be
* Winsock errors. Some old versions had s_error, but it appears to be
* gone, and is not documented.
* gone, and is not documented.
*/
*/
for
(
const
wsaerrmsg_t
*
e
=
wsaerrmsg
;
e
.
msg
!=
NULL
;
e
++
)
for
(
const
wsaerrmsg_t
*
e
=
wsaerrmsg
;
e
->
msg
!=
NULL
;
e
++
)
if
(
e
.
code
==
value
)
if
(
e
->
code
==
value
)
return
e
.
msg
;
return
e
->
msg
;
return
"Unknown network stack error"
;
return
"Unknown network stack error"
;
}
}
...
...
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