summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-09-12 16:37:54 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-09-25 17:04:41 +0300
commitc009e12a7c87ed8dc591d7c67fd71b53b6ebf538 (patch)
treeee0b413ffa1a46d7c2fa6878fcce49f5830ad35c
parent1d73b5ef185b10f44afb73b91c960c9e9e6d2bf6 (diff)
tests: io_update correct lseek parameters order
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>
-rw-r--r--tests/ubi-tests/io_update.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ubi-tests/io_update.c b/tests/ubi-tests/io_update.c
index 0259446..e8f0986 100644
--- a/tests/ubi-tests/io_update.c
+++ b/tests/ubi-tests/io_update.c
@@ -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;