Commit db10beba authored by Rafaël Carré's avatar Rafaël Carré

dbus: remove not thread-safe strerror() and GNU strerror_r() use

parent 8762bdeb
...@@ -870,8 +870,7 @@ static void Run ( intf_thread_t *p_intf ) ...@@ -870,8 +870,7 @@ static void Run ( intf_thread_t *p_intf )
if( -1 == i_pollres ) if( -1 == i_pollres )
{ /* XXX: What should we do when poll() fails ? */ { /* XXX: What should we do when poll() fails ? */
char buf[64]; msg_Err( p_intf, "poll() failed: %m" );
msg_Err( p_intf, "poll() failed: %s", strerror_r( i_errsv, buf, 64 ) );
free( p_fds ); p_fds = NULL; free( p_fds ); p_fds = NULL;
vlc_restorecancel( canc ); vlc_restorecancel( canc );
continue; continue;
...@@ -944,8 +943,7 @@ static void wakeup_main_loop( void *p_data ) ...@@ -944,8 +943,7 @@ static void wakeup_main_loop( void *p_data )
if( !write( p_intf->p_sys->p_pipe_fds[PIPE_IN], "\0", 1 ) ) if( !write( p_intf->p_sys->p_pipe_fds[PIPE_IN], "\0", 1 ) )
{ {
msg_Err( p_intf, msg_Err( p_intf, "Could not wake up the main loop: %m" );
"Could not wake up the main loop: %s", strerror( errno ) );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment