From f6bd2c366b32262c2a5a1ac38713dc84bf7c9cbf Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 16 Jan 2009 20:53:42 +0200 Subject: ubi-tests: fix build and some warnings Signed-off-by: Artem Bityutskiy --- tests/ubi-tests/io_paral.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ubi-tests/io_paral.c') diff --git a/tests/ubi-tests/io_paral.c b/tests/ubi-tests/io_paral.c index f98618c..ed0cbe0 100644 --- a/tests/ubi-tests/io_paral.c +++ b/tests/ubi-tests/io_paral.c @@ -60,7 +60,7 @@ static long long memory_limit(void) * * @ptr thread number */ -static void * the_thread(void *ptr) +static void *the_thread(void *ptr) { int fd, iter = iterations, vol_id = (int)ptr; unsigned char *wbuf, *rbuf; @@ -219,7 +219,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 *)i); if (ret) { failed("pthread_create"); goto remove; -- cgit v1.2.3