gen_init_cpio: fixed fwrite warning
commit6d87fea4dd7152df4a4605a3846c3bf10f869e0c
authorMike Frysinger <vapier@gentoo.org>
Wed, 9 Dec 2009 11:55:19 +0000 (9 06:55 -0500)
committerMichal Marek <mmarek@suse.cz>
Sat, 12 Dec 2009 12:08:17 +0000 (12 13:08 +0100)
treeb96803c875770e6e20b1e5035a338c1a61f32684
parentd9bdcc72ecf055f97ed736a6c0309bd41baf10a7
gen_init_cpio: fixed fwrite warning

On compilers with security warnings enabled by default, we get:

usr/gen_init_cpio.c: In function ‘cpio_mkfile’:
usr/gen_init_cpio.c:357: warning: ignoring return value of ‘fwrite’,
                                  declared with attribute warn_unused_result

So check the return value and handle errors accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
usr/gen_init_cpio.c