git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb70848
)
Remove silly copy-cat code. vasprintf does not generate socket errors does it?
author
Rémi Denis-Courmont
<rem@videolan.org>
Wed, 3 Oct 2007 17:27:10 +0000
(17:27 +0000)
committer
Rémi Denis-Courmont
<rem@videolan.org>
Wed, 3 Oct 2007 17:27:10 +0000
(17:27 +0000)
src/misc/messages.c
patch
|
blob
|
history
diff --git
a/src/misc/messages.c
b/src/misc/messages.c
index
1bcc6a5
..
ce71533
100644
(file)
--- a/
src/misc/messages.c
+++ b/
src/misc/messages.c
@@
-376,14
+376,7
@@
static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
* will be stored in the buffer we provide to strerror_r() */
strerror_r( errno, psz_err, 1001 );
#else
- int sockerr = WSAGetLastError( );
- if( sockerr )
- {
- strncpy( psz_err, net_strerror( sockerr ), 1001 );
- WSASetLastError( sockerr );
- }
- else
- strncpy( psz_err, strerror( errno ), 1001 );
+ strncpy( psz_err, strerror( errno ), 1001 );
#endif
psz_err[1000] = '\0';
fprintf( stderr, "main warning: can't store message (%s): ", psz_err );