diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-10-04 14:49:17 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-10-04 14:49:17 +0200 |
| commit | 2305b5cbd8d75f8e01a1298f9490d2270d740d1d (patch) | |
| tree | f7981e0e532b84284437fa796c99770d0c3c6aed /test | |
| parent | c96fd52e41b1ffe23675a8a7bab8df9278d9182b (diff) | |
| download | cachepc-2305b5cbd8d75f8e01a1298f9490d2270d740d1d.tar.gz cachepc-2305b5cbd8d75f8e01a1298f9490d2270d740d1d.zip | |
Small fixes
Diffstat (limited to 'test')
| -rwxr-xr-x | test/eviction.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/eviction.c b/test/eviction.c index a92ab73..7cdb665 100755 --- a/test/eviction.c +++ b/test/eviction.c @@ -1,13 +1,13 @@ #include "cachepc_user.h" -#include <stdlib.h> -#include <stdio.h> -#include <err.h> +#include <sys/ioctl.h> #include <fcntl.h> #include <stdint.h> #include <assert.h> #include <unistd.h> -#include <stropts.h> +#include <err.h> +#include <stdlib.h> +#include <stdio.h> int main(int argc, const char **argv) @@ -33,7 +33,7 @@ main(int argc, const char **argv) printf("\n"); if (counts[i] > 0) printf("\x1b[91m"); - printf("%2i ", i); + printf("%2lu ", i); if (counts[i] > 0) printf("\x1b[0m"); } |
