[vdr] softplay cvs warning cleanups

Martin Wache M.Wache at gmx.net
Sun Apr 2 22:24:56 CEST 2006


C.Y.M schrieb:

> --- softplay/FileIndex.c.orig	2006-03-12 12:23:23.000000000 -0800
> +++ softplay/FileIndex.c	2006-04-01 21:44:37.000000000 -0800
> @@ -95,7 +95,7 @@
>  	
>  	skipSpaces(pos);
>          printf("duration '%s' \n",pos);
> -        if ( !*pos || sscanf(pos,"%100[0-9]%n",&tmp,&len) == 0 ) {
> +        if ( !*pos || sscanf(pos,"%100[0-9]%n",(char *)&tmp,&len) == 0 ) {
>                  printf("EXTINF Could not parse duration \"%s\". Ignoring.\n",pos);
>                  return;
>          };

Hmm, that one is actually a bug, that should read:

if ( !*pos || sscanf(pos,"%100[0-9]%n",tmp,&len) == 0 ) {

I guess there is some sense in compiler warnings ;-)

Thank you for the patch, I applied a slightly modified version fixing
the bug above.

Bye,
Martin



More information about the vdr mailing list