commit | 0783d7e705f2d73f7148d9f45c600c2587b3c3ce | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Fri Nov 07 11:41:11 2008 +1100 |
committer | Jon Loeliger <jdl@jdl.com> | Mon Nov 17 14:04:35 2008 -0600 |
tree | 407bd4688e82e80376b3bf2a696687945d956880 | |
parent | f99cd158a9f0b67d3935a08a07dab4f36719fc74 [diff] |
dtc: Check return value from fwrite() There's one place in flattree.c where we currently ignore the return value from fwrite(). On some gcc/glibc versions, where fwrite() is declared with attribute warn_unused_result, this causes a warning. This patch fixes the warning, by checking the fwrite() result. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>