am f805a8b3
: Merge "Change lseek to lseek64"
* commit 'f805a8b3a917b163c789f1ad4b272560f98eb6f1': Change lseek to lseek64
This commit is contained in:
commit
71f8d86fdf
1 changed files with 2 additions and 2 deletions
|
@ -876,13 +876,13 @@ static int save_persistent_data(void)
|
|||
}
|
||||
|
||||
/* Write the new copy first, if successful, then erase the old copy */
|
||||
if (lseek(fd, write_offset, SEEK_SET) < 0) {
|
||||
if (lseek64(fd, write_offset, SEEK_SET) < 0) {
|
||||
SLOGE("Cannot seek to write persistent data");
|
||||
goto err2;
|
||||
}
|
||||
if (unix_write(fd, persist_data, crypt_ftr.persist_data_size) ==
|
||||
(int) crypt_ftr.persist_data_size) {
|
||||
if (lseek(fd, erase_offset, SEEK_SET) < 0) {
|
||||
if (lseek64(fd, erase_offset, SEEK_SET) < 0) {
|
||||
SLOGE("Cannot seek to erase previous persistent data");
|
||||
goto err2;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue