[rsbac] compile message

Amon Ott ao at rsbac.org
Wed Jul 13 12:30:06 CEST 2011


On Monday 20 June 2011 wrote Jens Kasten:
> kernel 2.6.32.41
> I get on compiling the kernel that message:
>
> rsbac/data_structures/aci_data_structures.c: In function
> ‘stats_proc_show’:
> rsbac/data_structures/aci_data_structures.c:3091: warning: comparison of
> unsigned expression >= 0 is always true
>
> I grep for fd_count and on line 2925 is it defined as u_long.
>
> On line 3090 the variable get an assigning:
> 	fd_count = rsbac_list_count(device_p->handles.gen);
>
> Means that compiler warning, even if function rsbac_list_count would
> return a negative value it would never be assigned as a negative value
> to fd_count because its defined as unsigned long?

Well spotted! Fixed in Git repos. Thanks.

Amon.
-- 
http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22


More information about the rsbac mailing list