about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2017-03-06 10:27:42 +0000
committerGitHub <noreply@github.com>2017-03-06 10:27:42 +0000
commitcb0c4bacc6ec60676e2a7ce84d8ff34e669c5f3d (patch)
treeca4f0d20637a2b9dd65ea7717fb960fba674d6f8
parente608c7a77733662e7b3e71b1e929899c718ce06c (diff)
parentbf9d7a21d68ae83046581aa5880581e3873fe988 (diff)
downloadklee-cb0c4bacc6ec60676e2a7ce84d8ff34e669c5f3d.tar.gz
Merge pull request #614 from jirislaby/DirSeek
test: POSIX/DirSeek, cleanup
-rw-r--r--test/Runtime/POSIX/DirSeek.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Runtime/POSIX/DirSeek.c b/test/Runtime/POSIX/DirSeek.c
index e017b98d..3908b4e2 100644
--- a/test/Runtime/POSIX/DirSeek.c
+++ b/test/Runtime/POSIX/DirSeek.c
@@ -23,15 +23,13 @@
 #include <string.h>
 
 int main(int argc, char **argv) {
-  struct stat s;
-
   char first[256], second[256];
   DIR *d = opendir(".");
   struct dirent *de = readdir(d);
   assert(de);
   strcpy(first, de->d_name);
   off_t pos = telldir(d);
-  printf("pos: %d\n", telldir(d));
+  printf("pos: %ld\n", telldir(d));
   de = readdir(d);
   assert(de);
   strcpy(second, de->d_name);