Merge "Fix error found building relocation packer for host bionic"

This commit is contained in:
Treehugger Robot 2017-09-25 23:56:17 +00:00 committed by Gerrit Code Review
commit 9c172c86e7
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ int main(int argc, char* argv[]) {
// We need to detect elf class in order to create
// correct implementation
uint8_t e_ident[EI_NIDENT];
if (TEMP_FAILURE_RETRY(read(fd.get(), e_ident, EI_NIDENT) != EI_NIDENT)) {
if (TEMP_FAILURE_RETRY(read(fd.get(), e_ident, EI_NIDENT)) != EI_NIDENT) {
LOG(ERROR) << file << ": failed to read elf header:" << strerror(errno);
return 1;
}