From 67ca971b0b00b5256b0af2c1c5777c393f9cef0b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 3 Oct 1998 12:33:34 +0000 Subject: added lseek() support for directories --- source/utils/torture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/utils') diff --git a/source/utils/torture.c b/source/utils/torture.c index 1cf1f2fe4de..e7bd347993a 100644 --- a/source/utils/torture.c +++ b/source/utils/torture.c @@ -758,7 +758,7 @@ static void run_trans2test(void) { static struct cli_state cli; int fnum; - uint32 size; + size_t size; time_t c_time, a_time, m_time, w_time, m_time2; char *fname = "\\trans2.tst"; char *dname = "\\trans2"; @@ -773,7 +773,7 @@ static void run_trans2test(void) cli_unlink(&cli, fname); fnum = cli_open(&cli, fname, O_RDWR | O_CREAT | O_TRUNC, DENY_NONE); - if (!cli_qfileinfo(&cli, fnum, &c_time, &a_time, &m_time, &size, NULL)) { + if (!cli_qfileinfo(&cli, fnum, NULL, &size, &c_time, &a_time, &m_time)) { printf("ERROR: qfileinfo failed (%s)\n", cli_errstr(&cli)); } cli_close(&cli, fnum); -- cgit v1.2.1