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

Aurelien Jacobs aurel at gnuage.org
Sun Dec 3 22:21:15 CET 2006


On Sun, 03 Dec 2006 21:59:58 +0100
Nico Sabbi <nicola_sabbi at fastwebnet.it> wrote:

> 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

Applied

Aurel



More information about the MPlayer-dev-eng mailing list