[PATCH] coverity: i386: build.c: negative return to unsigned fix

Variable "c" was declared as an unsigned int, but used in:

125 for (i=0 ; (c=read(fd, buf, sizeof(buf)))>0 ; i+=c )
126 if (write(1, buf, c) != c)
127 die("Write call failed");

(akpm: read() can return -1. If it does, we fill the disk up with garbage).

Signed-off-by: Zaur Kambarov <zkambarov@coverity.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by KAMBAROV, ZAUR and committed by Linus Torvalds a8f50345 4cceb4d1

+2 -1
+2 -1
arch/i386/boot/tools/build.c
··· 70 71 int main(int argc, char ** argv) 72 { 73 - unsigned int i, c, sz, setup_sectors; 74 u32 sys_size; 75 byte major_root, minor_root; 76 struct stat sb;
··· 70 71 int main(int argc, char ** argv) 72 { 73 + unsigned int i, sz, setup_sectors; 74 + int c; 75 u32 sys_size; 76 byte major_root, minor_root; 77 struct stat sb;