mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix build failure.
Merge of master-melb:xfs-cmds:29235a by kenmcd. Fix build failure.
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user