diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-08 12:35:42 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-08 12:35:42 +0300 |
commit | 072e38b8bcd5414eb935ef26300818d98d42d794 (patch) | |
tree | 4b5621b0135328f965f19ff1281c2861add96fb2 /tests/ubi-tests/mkvol_paral.c | |
parent | 3ad574032dd8eb13d8ae28d4cb7a3c35e20c09f5 (diff) |
ubi-tests: various changes
Mostly improvments in io_paral.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/ubi-tests/mkvol_paral.c')
-rw-r--r-- | tests/ubi-tests/mkvol_paral.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ubi-tests/mkvol_paral.c b/tests/ubi-tests/mkvol_paral.c index 74be5fa..8c6e02f 100644 --- a/tests/ubi-tests/mkvol_paral.c +++ b/tests/ubi-tests/mkvol_paral.c @@ -43,7 +43,7 @@ static int iterations = ITERATIONS; */ static void * the_thread(void *ptr) { - int n = (int)ptr, iter = iterations; + int n = (long)ptr, iter = iterations; struct ubi_mkvol_request req; const char *name = TESTNAME ":the_thread()"; char nm[strlen(name) + 50]; @@ -91,7 +91,7 @@ int main(int argc, char * const argv[]) } for (i = 0; i < THREADS_NUM; i++) { - ret = pthread_create(&threads[i], NULL, &the_thread, (void*)i); + ret = pthread_create(&threads[i], NULL, &the_thread, (void*)(long)i); if (ret) { failed("pthread_create"); goto close; |