From d6716063852ffa74627ec260f177dc17e893aff7 Mon Sep 17 00:00:00 2001 From: Lachlan McIlroy Date: Thu, 26 Jul 2007 21:25:32 +0000 Subject: [PATCH] Fix build failure. Merge of master-melb:xfs-cmds:29235a by kenmcd. Fix build failure. --- dmapi/src/suite2/src/test_invis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dmapi/src/suite2/src/test_invis.c b/dmapi/src/suite2/src/test_invis.c index 2db3524a..115ffb7b 100644 --- a/dmapi/src/suite2/src/test_invis.c +++ b/dmapi/src/suite2/src/test_invis.c @@ -313,6 +313,7 @@ main( test_file); } else { + dm_off_t offset; /* Try writing a character waaaaaay up in the millions range */ sprintf(bufp, "%c", ch); @@ -321,7 +322,7 @@ main( "Error: unable to stat the test file; %s \n", test_file); } - dm_off_t offset = ((1000000*(dm_off_t)(ch)) > statbuf.st_size) ? + offset = ((1000000*(dm_off_t)(ch)) > statbuf.st_size) ? statbuf.st_size : (1000000*(dm_off_t)(ch)); if (dm_write_invis(sid, hanp, hlen, DM_NO_TOKEN, 0, offset, 1, bufp)==-1){ -- 2.25.1