Fix build failure.

Merge of master-melb:xfs-cmds:29235a by kenmcd.

  Fix build failure.
This commit is contained in:
Lachlan McIlroy
2007-07-26 21:25:32 +00:00
parent 4459267d2c
commit d671606385
+2 -1
View File
@@ -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){