]> www.infradead.org Git - mtd-utils.git/commitdiff
tests: io_update correct lseek parameters order
authorRichard Genoud <richard.genoud@gmail.com>
Wed, 12 Sep 2012 14:37:54 +0000 (16:37 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 25 Sep 2012 14:04:41 +0000 (17:04 +0300)
There's a typo in lseek parameters order.

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

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
tests/ubi-tests/io_update.c

index 0259446a861456acff184eb316eb1d8dc0f9fbef..e8f09867ee8b3273b30d1c733126c61136fa7c28 100644 (file)
@@ -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;