X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Faccess%2Frtsp%2Frtsp.c;h=7b1e606df0d1d9363bd9757e616027f269d7c2fe;hb=1424165964f3c4b27269780f4d7eefd7107c6892;hp=6730a931168951880e6452bbe4064aed7c7eef94;hpb=9630c00c6b310e1a824f0bce00de89f0f777484f;p=vlc diff --git a/modules/access/rtsp/rtsp.c b/modules/access/rtsp/rtsp.c index 6730a93116..7b1e606df0 100644 --- a/modules/access/rtsp/rtsp.c +++ b/modules/access/rtsp/rtsp.c @@ -28,7 +28,7 @@ # include "config.h" #endif -#include +#include #include "rtsp.h" @@ -128,6 +128,7 @@ static int rtsp_put( rtsp_client_t *rtsp, const char *psz_string ) static int rtsp_get_status_code( rtsp_client_t *rtsp, const char *psz_string ) { + VLC_UNUSED(rtsp); char psz_buffer[4]; int i_code = 0; @@ -137,7 +138,7 @@ static int rtsp_get_status_code( rtsp_client_t *rtsp, const char *psz_string ) psz_buffer[3] = 0; i_code = atoi( psz_buffer ); } - else if( !strncmp( psz_string, "SET_PARAMETER", 8 ) ) + else if( !strncmp( psz_string, "SET_PARAMETER", sizeof("SET_PARAMETER") - 1 ) ) { return RTSP_STATUS_SET_PARAMETER; }