diff options
Diffstat (limited to 'arch/x86/tools/relocs.c')
| -rw-r--r-- | arch/x86/tools/relocs.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c index 0b08067c45f3..b629f6992d9f 100644 --- a/arch/x86/tools/relocs.c +++ b/arch/x86/tools/relocs.c @@ -130,7 +130,7 @@ static void regex_init(int use_real_mode)  			      REG_EXTENDED|REG_NOSUB);  		if (err) { -			regerror(err, &sym_regex_c[i], errbuf, sizeof errbuf); +			regerror(err, &sym_regex_c[i], errbuf, sizeof(errbuf));  			die("%s", errbuf);  		}          } @@ -405,7 +405,7 @@ static void read_shdrs(FILE *fp)  	}  	for (i = 0; i < ehdr.e_shnum; i++) {  		struct section *sec = &secs[i]; -		if (fread(&shdr, sizeof shdr, 1, fp) != 1) +		if (fread(&shdr, sizeof(shdr), 1, fp) != 1)  			die("Cannot read ELF section headers %d/%d: %s\n",  			    i, ehdr.e_shnum, strerror(errno));  		sec->shdr.sh_name      = elf_word_to_cpu(shdr.sh_name);  | 
