Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Nico Sabbi <nicola_sabbi <at> fastwebnet.it>
Subject: Re: [PATCH] some stream_dvb cleanup
Newsgroups: gmane.comp.video.mplayer.devel
Date: Sunday 3rd December 2006 20:59:58 UTC (over 10 years ago)
Aurelien Jacobs wrote:
> Hi,
> 
> The index() function is deprecated and require #include .
> 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
 
CD: 2ms