- 2.6.2 -scripts/modpost.c -
PATCH 1/1 - 2.6.2 -scripts/modpost.c -
Fixes signed/unsigned comparison warnings.
Signature · 2 lines
Ron Gage - LPIC1, MCP, A+, Net+ Pontiac, Michigan
scripts/modpost.c +2 -2
@@ -514,7 +514,7 @@ goto close_write; tmp =NOFAIL (malloc (b->pos)); -if (fread (tmp,1 , b->pos, file) != b->pos) +if (fread (tmp,1 , b->pos, file) != (unsigned )b->pos) goto free_write;if (memcmp (tmp, b->p, b->pos) !=0 )
@@ -534,7 +534,7 @@perror (fname);exit (1 ); } -if (fwrite (b->p,1 , b->pos, file) != b->pos) { +if (fwrite (b->p,1 , b->pos, file) != (unsigned )b->pos) {perror (fname);exit (1 ); }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
On Sat, 14 Feb 2004 22:46:32 -0500 Ron Gage wrote:
| Fixes signed/unsigned comparison warnings.
|
This one (modpost) is OK. The other 2 still left some comparison warnings for me, using gcc 3.2. What compiler version did you use to test these changes?
--
~Randy
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors