Changeset 1c8ba52d944ca5edc9e6b30b55e86a3aa7e39e95

Show
Ignore:
Timestamp:
10/01/07 23:28:36 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1191274116 +0000
git-parent:

[320fb45f0ccef622c2323e3ba0fa6b3ee5bb15f6]

git-author:
Rafaël Carré <funman@videolan.org> 1191274116 +0000
Message:

sap discovery: (size_t) casting

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/services_discovery/sap.c

    r9fffb68 r1c8ba52  
    353353 
    354354        i_read = stream_Read( p_demux->s, &psz_sdp[i_len], i_read_max ); 
    355         if( i_read < 0
     355        if( i_read <= (size_t)-1
    356356        { 
    357357            msg_Err( p_demux, "cannot read SDP" ); 
     
    362362        psz_sdp[i_len] = '\0'; 
    363363 
    364         if( i_read < i_read_max ) 
     364        if( i_read < (size_t)i_read_max ) 
    365365            break; // EOF 
    366366    }