Skip to contentSkip to conversation

io_update test: correct lseek parameters order

MTD-UTILS Applied Richard Genoud 2 participants 2 messages Sep 12, 2012 – Sep 25, 2012 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

There's a typo in lseek parameters order.

But, due to the value of SEEK_SET, this commit doesn't introduce a change.

---
 tests/ubi-tests/io_update.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tests/ubi-tests/io_update.c +1 -1
index 0259446..e8f0986 100644
@@ -158,7 +158,7 @@ static int test_update1(struct ubi_vol_info *vol_info, int leb_change)
 		}
 
 		/* Check data */
-		if ((ret = lseek(fd, SEEK_SET, 0)) != 0) {
+		if ((ret = lseek(fd, 0, SEEK_SET)) != 0) {
 			failed("lseek");
 			errmsg("cannot seek to 0");
 			goto close;
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 6 lines · Richard Genoud

There's a typo in lseek parameters order.

But, due to the value of SEEK_SET, this commit doesn't introduce a change.

Pushed to mtd-utils.git, thanks!

Signature · 2 lines
Best Regards,
Artem Bityutskiy