summaryrefslogtreecommitdiff
path: root/tests/ubi-tests/common.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 20:53:42 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-01-16 20:53:42 +0200
commitf6bd2c366b32262c2a5a1ac38713dc84bf7c9cbf (patch)
tree6464f369218560de977847b1dafc2952f89e37d9 /tests/ubi-tests/common.c
parent3bcddc65e3ffd69f29a68410c0604218cec8c34a (diff)
ubi-tests: fix build and some warnings
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/ubi-tests/common.c')
-rw-r--r--tests/ubi-tests/common.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/ubi-tests/common.c b/tests/ubi-tests/common.c
index e785b91..59b30a7 100644
--- a/tests/ubi-tests/common.c
+++ b/tests/ubi-tests/common.c
@@ -203,8 +203,7 @@ int __check_volume(libubi_t libubi, struct ubi_dev_info *dev_info,
/**
* __check_vol_patt - check that volume contains certain data
*
- * @libubi libubi descriptor
- * @dev_info UBI device description
+ * @libubi libubi descriptor
* @test test name
* @func function name
* @line line number
@@ -214,9 +213,8 @@ int __check_volume(libubi_t libubi, struct ubi_dev_info *dev_info,
* This function returns %0 if the volume contains only @byte bytes, and %-1 if
* not.
*/
-int __check_vol_patt(libubi_t libubi, struct ubi_dev_info *dev_info,
- const char *test, const char *func, int line,
- const char *node, uint8_t byte)
+int __check_vol_patt(libubi_t libubi, const char *test, const char *func,
+ int line, const char *node, uint8_t byte)
{
int ret, fd;
long long bytes = 0;