diff options
Diffstat (limited to 'src/sim/fd_array.cc')
-rw-r--r-- | src/sim/fd_array.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sim/fd_array.cc b/src/sim/fd_array.cc index 15cfe11ef..7f3f7dd24 100644 --- a/src/sim/fd_array.cc +++ b/src/sim/fd_array.cc @@ -131,8 +131,7 @@ FDArray::restoreFileOffsets() * possible to guarantee that the simulation will proceed as it should * have in the same way that it would have proceeded sans checkpoints. */ - void (*seek)(std::shared_ptr<FileFDEntry>) - = [] (std::shared_ptr<FileFDEntry> ffd) + auto seek = [] (std::shared_ptr<FileFDEntry> ffd) { if (lseek(ffd->getSimFD(), ffd->getFileOffset(), SEEK_SET) < 0) fatal("Unable to seek to location in %s", ffd->getFileName()); |