From bf9d7a21d68ae83046581aa5880581e3873fe988 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 6 Mar 2017 10:16:38 +0100 Subject: test: POSIX/DirSeek, cleanup * remove unused stat variable * use %ld for long int Signed-off-by: Jiri Slaby --- test/Runtime/POSIX/DirSeek.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') 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 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); -- cgit 1.4.1