[NUT-devel] [nut]: r549 - src/trunk/libnut/framecode.c

Rich Felker dalias at aerifal.cx
Sat Feb 2 20:11:15 CET 2008


On Sat, Feb 02, 2008 at 01:25:07PM +0100, ods15 wrote:
> Author: ods15
> Date: Sat Feb  2 13:25:06 2008
> New Revision: 549
> 
> Log:
> Warning fixes
> 
> 
> Modified:
>    src/trunk/libnut/framecode.c
> 
> Modified: src/trunk/libnut/framecode.c
> ==============================================================================
> --- src/trunk/libnut/framecode.c	(original)
> +++ src/trunk/libnut/framecode.c	Sat Feb  2 13:25:06 2008
> @@ -41,11 +41,11 @@ void nut_framecode_generate(const nut_st
>  			fti[n++] = (fti_t){ NUT_FLAG_KEY|              FLAG_SIZE_MSB,    1,      i,   1,    0,     1 };
>  			fti[n++] = (fti_t){ NUT_FLAG_KEY|FLAG_CHECKSUM|FLAG_SIZE_MSB,    1,      i,   1,    0,     1 };
>  			fti[n++] = (fti_t){             FLAG_CODED_PTS|FLAG_SIZE_MSB,    0,      i,   1,    0,     1 };
> -			if (s[i].fourcc_len == 4 && !strncmp(s[i].fourcc, "mp4v", 4)) {
> +			if (s[i].fourcc_len == 4 && !strncmp((char*)s[i].fourcc, "mp4v", 4)) {

I strongly dislike this sort of change. Pointer signedness warnings
are idiotic and should be disabled.

Rich



More information about the NUT-devel mailing list