From c5a73a110a69c0f34795af5defbd4c1a3a1006dd Mon Sep 17 00:00:00 2001 From: adilger Date: Thu, 30 Sep 2004 21:02:57 +0000 Subject: [PATCH] Branch: b1_4_smallfix Fix minor compile warnings, from Bob. b=4780 --- lustre/liblustre/tests/sanity.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/liblustre/tests/sanity.c b/lustre/liblustre/tests/sanity.c index 114b20d..fce471c 100644 --- a/lustre/liblustre/tests/sanity.c +++ b/lustre/liblustre/tests/sanity.c @@ -36,6 +36,7 @@ #include #include #include +#include #include "test_common.h" @@ -376,7 +377,6 @@ void t15() void t16() { char file[MAX_PATH_LENGTH] = ""; - int fd; ENTRY("small-write-read"); snprintf(file, MAX_PATH_LENGTH, "%s/test_t16_file", lustre_path); @@ -426,7 +426,7 @@ void t18() printf("Error stat\n"); exit(1); } - printf("mtime %ld, ctime %d\n", + printf("mtime %lu, ctime %lu\n", statbuf[i].st_atime, statbuf[i].st_mtime); sleep(2); } @@ -732,8 +732,8 @@ static void pages_io(int xfer, loff_t pos) void t50() { - char text[256]; - loff_t off_array[] = {1, 17, 255, 258, 4095, 4097, 8191, 1024*1024*1024*1024ULL}; + loff_t off_array[] = {1, 17, 255, 258, 4095, 4097, 8191, + 1024*1024*1024*1024ULL}; int np = 1, i; loff_t offset = 0; -- 1.8.3.1