summaryrefslogtreecommitdiffstats
path: root/test/access.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-10-04 14:54:52 +0200
committerLouis Burda <quent.burda@gmail.com>2022-10-04 14:54:52 +0200
commit8b1535789509812763de132f877b596d01861714 (patch)
tree5d2d91f5d5c5320f8e26e39f865ef3d8cd15497a /test/access.c
parent2305b5cbd8d75f8e01a1298f9490d2270d740d1d (diff)
downloadcachepc-8b1535789509812763de132f877b596d01861714.tar.gz
cachepc-8b1535789509812763de132f877b596d01861714.zip
Small test fixes
Diffstat (limited to 'test/access.c')
-rwxr-xr-xtest/access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/access.c b/test/access.c
index e7676a7..22e2fb8 100755
--- a/test/access.c
+++ b/test/access.c
@@ -1,5 +1,6 @@
#include "cachepc_user.h"
+#include <sys/ioctl.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
@@ -7,14 +8,13 @@
#include <err.h>
#include <fcntl.h>
#include <unistd.h>
-#include <stropts.h>
int
main(int argc, const char **argv)
{
uint32_t arg;
- size_t i, len;
int fd, ret;
+ size_t i;
fd = open("/proc/cachepc", O_RDONLY);
if (fd < 0) err(1, "open");