Messages in this thread | | | Date | Mon, 03 Jan 2005 12:59:55 -0500 | From | Jeff Garzik <> | Subject | Re: [3/8] kill gen_init_cpio.c printk() of size_t warning |
| |
William Lee Irwin III wrote: > The rest of gen_init_cpio.c seems to cast the result of strlen() to > handle this situation, so this patch follows suit while killing off > size_t -related printk() warnings. > > Signed-off-by: William Irwin <wli@holomorphy.com> > > Index: mm1-2.6.10/usr/gen_init_cpio.c > =================================================================== > --- mm1-2.6.10.orig/usr/gen_init_cpio.c 2005-01-03 06:45:53.000000000 -0800 > +++ mm1-2.6.10/usr/gen_init_cpio.c 2005-01-03 08:11:18.000000000 -0800 > @@ -86,7 +86,7 @@ > 0, /* minor */ > 0, /* rmajor */ > 0, /* rminor */ > - (unsigned)strlen(name) + 1, /* namesize */ > + (unsigned)strlen(name)+1, /* namesize */ > 0); /* chksum */ > push_hdr(s); > push_rest(name); > @@ -112,7 +112,7 @@ > (long) gid, /* gid */ > 1, /* nlink */ > (long) mtime, /* mtime */ > - strlen(target) + 1, /* filesize */ > + (unsigned)strlen(target)+1, /* filesize */
This removes whitespace in the process, violating the file's chosen style (and typical lkml style).
Jeff
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |