Commit 485b0994 authored by Gildas Bazin's avatar Gildas Bazin

* src/stream_output/sap.c: net_Write() returns an int, not an unsigned.

parent 6df9b4ea
...@@ -540,7 +540,7 @@ static int announce_SAPAnnounceDel( sap_handler_t *p_sap, ...@@ -540,7 +540,7 @@ static int announce_SAPAnnounceDel( sap_handler_t *p_sap,
static int announce_SendSAPAnnounce( sap_handler_t *p_sap, static int announce_SendSAPAnnounce( sap_handler_t *p_sap,
sap_session_t *p_session ) sap_session_t *p_session )
{ {
unsigned int i_ret; int i_ret;
/* This announce has never been sent yet */ /* This announce has never been sent yet */
if( p_session->i_last == 0 ) if( p_session->i_last == 0 )
...@@ -558,7 +558,7 @@ static int announce_SendSAPAnnounce( sap_handler_t *p_sap, ...@@ -558,7 +558,7 @@ static int announce_SendSAPAnnounce( sap_handler_t *p_sap,
i_ret = net_Write( p_sap, p_session->p_address->i_wfd, NULL, i_ret = net_Write( p_sap, p_session->p_address->i_wfd, NULL,
p_session->psz_data, p_session->psz_data,
p_session->i_length ); p_session->i_length );
if( i_ret != (unsigned int)p_session->i_length ) if( i_ret != p_session->i_length )
{ {
msg_Warn( p_sap, "SAP send failed on address %s (%i %i)", msg_Warn( p_sap, "SAP send failed on address %s (%i %i)",
p_session->p_address->psz_address, p_session->p_address->psz_address,
......
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