[MPlayer-dev-eng] [PATCH] some stream_dvb cleanup

Nico Sabbi nicola_sabbi at fastwebnet.it
Sun Dec 3 21:59:58 CET 2006


Aurelien Jacobs wrote:
> Hi,
> 
> The index() function is deprecated and require #include <strings.h>.
> stream_dvb.c don't include strings.h and uses index().
> The first patch fix this by replacing index() with strchr().
> 
> The second patch remove some headers included twice.
> 
> They are quite straightforward so I will apply soon.
> 
> Aurel
> 
> 
> ------------------------------------------------------------------------
> 
> Index: stream/stream_dvb.c
> ===================================================================
> --- stream/stream_dvb.c	(revision 21470)
> +++ stream/stream_dvb.c	(working copy)
> @@ -169,7 +169,7 @@
>  		if((line[0] == '#') || (strlen(line) == 0))
>  			continue;
>  
> -		colon = index(line, ':');
> +		colon = strchr(line, ':');
>  		if(colon)
>  		{
>  			k = colon - line;
> 
> 

blessed



More information about the MPlayer-dev-eng mailing list