summaryrefslogtreecommitdiffstats
path: root/test/gen_bad_offset.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/gen_bad_offset.c')
-rw-r--r--test/gen_bad_offset.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gen_bad_offset.c b/test/gen_bad_offset.c
index 4f7b959..9c52195 100644
--- a/test/gen_bad_offset.c
+++ b/test/gen_bad_offset.c
@@ -31,11 +31,11 @@
* (A) Open the file:
* fd = HDopen(TESTFILE, O_RDWR, 0663);
* (B) Position the file at:
- * (1) HDlseek(fd, (HDoff_t)880, SEEK_SET);
+ * (1) HDlseek(fd, 880, SEEK_SET);
* "/group1/group2": replace heap offset "8" by bad offset
- * (2) HDlseek(fd, (HDoff_t)1512, SEEK_SET);
+ * (2) HDlseek(fd, 1512, SEEK_SET);
* "/dsetA": replace name offset into private heap "72" by bad offset
- * (3) HDlseek(fd, (HDoff_t)1616, SEEK_SET);
+ * (3) HDlseek(fd, 1616, SEEK_SET);
* /soft_one: replace link value offset in the scratch pad "32" by bad offset
* (C) Write the bad offset value to the file for (1), (2) and (3):
* write(fd, &val, sizeof(val));
@@ -104,21 +104,21 @@ main(void)
FAIL_STACK_ERROR;
/* Position the file for /group1/group2: replace heap offset "8" by bad offset */
- if (HDlseek(fd, (HDoff_t)880, SEEK_SET) < 0)
+ if (HDlseek(fd, 880, SEEK_SET) < 0)
FAIL_STACK_ERROR;
/* Write the bad offset value to the file */
if (HDwrite(fd, &val, sizeof(val)) < 0)
FAIL_STACK_ERROR;
/* Position the file for /dsetA: replace name offset into private heap "72" by bad offset */
- if (HDlseek(fd, (HDoff_t)1512, SEEK_SET) < 0)
+ if (HDlseek(fd, 1512, SEEK_SET) < 0)
FAIL_STACK_ERROR;
/* Write the bad offset value to the file */
if (HDwrite(fd, &val, sizeof(val)) < 0)
FAIL_STACK_ERROR;
/* Position the file for /soft_one: replace link value offset in the scratch pad "32" by bad offset */
- if (HDlseek(fd, (HDoff_t)1616, SEEK_SET) < 0)
+ if (HDlseek(fd, 1616, SEEK_SET) < 0)
FAIL_STACK_ERROR;
/* Write the bad offset value to the file */
if (HDwrite(fd, &val, sizeof(val)) < 0)