aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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);