Skip to content

Commit

Permalink
REVERT: Tested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrugman committed May 19, 2024
1 parent a1a6374 commit 1e21c0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::vector<uint8_t> mem::read(loff_t offset, size_t bytes)

struct iovec iov = {&buffer[0], buffer.size()};

ssize_t bytes_read = preadv64(_fd, &iov, 1, offset);
ssize_t bytes_read = preadv(_fd, &iov, 1, offset);
if (bytes_read == -1)
{
throw std::system_error(errno, std::system_category(),
Expand Down
1 change: 1 addition & 0 deletions test/test_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>

#include <linux/kdev_t.h>

Expand Down

0 comments on commit 1e21c0c

Please sign in to comment.