flashrom: Check return value of fscanf()/fwrite()/fread()
Fix build error on distros with warn_unused_result attributes in glibc. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Yul Rottmann <yulrottmann@bitel.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3857 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -146,8 +146,8 @@ int read_romlayout(char *name)
|
||||
|
||||
while (!feof(romlayout)) {
|
||||
char *tstr1, *tstr2;
|
||||
fscanf(romlayout, "%s %s\n", tempstr,
|
||||
rom_entries[romimages].name);
|
||||
if (2 != fscanf(romlayout, "%s %s\n", tempstr, rom_entries[romimages].name))
|
||||
continue;
|
||||
#if 0
|
||||
// fscanf does not like arbitrary comments like that :( later
|
||||
if (tempstr[0] == '#') {
|
||||
|
Reference in New Issue
Block a user