summaryrefslogtreecommitdiff
path: root/common/utils.cc
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2018-04-04 17:59:10 -0700
committerSen Jiang <senj@google.com>2018-04-04 18:07:19 -0700
commit771f6486a3b0333d43a2f8c743bfb945dca9db2c (patch)
treec72aa56680550f17c2b60621a1ede140f550aec8 /common/utils.cc
parenta57d53e3edbda255a938a7dc76a2f38faeb520d4 (diff)
Correct some spellings.
Test: mma Change-Id: Icc49a4ee76f12d302ed18982d334f2f70b7263a8
Diffstat (limited to 'common/utils.cc')
-rw-r--r--common/utils.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/utils.cc b/common/utils.cc
index f651823d..d9355353 100644
--- a/common/utils.cc
+++ b/common/utils.cc
@@ -291,7 +291,10 @@ bool PReadAll(int fd, void* buf, size_t count, off_t offset,
return true;
}
-bool PReadAll(const FileDescriptorPtr& fd, void* buf, size_t count, off_t offset,
+bool PReadAll(const FileDescriptorPtr& fd,
+ void* buf,
+ size_t count,
+ off_t offset,
ssize_t* out_bytes_read) {
TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) !=
static_cast<off_t>(-1));
@@ -774,7 +777,7 @@ static bool GetFileFormatELF(const uint8_t* buffer, size_t size,
if (size < offsetof(Elf32_Ehdr, e_machine) + sizeof(hdr->e_machine))
return true;
uint16_t e_machine;
- // Fix endianess regardless of the host endianess.
+ // Fix endianness regardless of the host endianness.
if (ei_data == ELFDATA2LSB)
e_machine = le16toh(hdr->e_machine);
else