From 8ee07313f2e725fbf4bc96def133aedbde130db6 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 27 Nov 2012 19:32:16 +0400 Subject: [PATCH] zdtm: pthread00 -- Rename thread functions to more sensible names Signed-off-by: Cyrill Gorcunov Acked-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/pthread00.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/zdtm/live/static/pthread00.c b/test/zdtm/live/static/pthread00.c index d1b0b5147..384e0d58b 100644 --- a/test/zdtm/live/static/pthread00.c +++ b/test/zdtm/live/static/pthread00.c @@ -41,7 +41,7 @@ static __thread char tls_data[10]; #define IS_PASSED(map, i) (MAP(map, i) & TRANSITION_PASSED) #define IS_FAILED(map, i) (MAP(map, i) & TRANSITION_FAILED) -static void *ff1(void *map) +static void *thread_subfunc_1(void *map) { char __tls_data[10] = "1122334455"; pid_t pid; @@ -95,7 +95,7 @@ static void *ff1(void *map) return NULL; } -static void *f1(void *map) +static void *thread_func_1(void *map) { char __tls_data[10] = "3122131212"; pthread_t th; @@ -104,7 +104,7 @@ static void *f1(void *map) memcpy(tls_data, __tls_data, sizeof(tls_data)); - if (pthread_create(&th, NULL, &ff1, map)) + if (pthread_create(&th, NULL, &thread_subfunc_1, map)) perror("Cant create thread"); pid = test_fork(); @@ -155,7 +155,7 @@ static void *f1(void *map) return NULL; } -static void *f2(void *map) +static void *thread_func_2(void *map) { char __tls_data[10] = "wasdfrdgdc"; pid_t pid; @@ -225,8 +225,8 @@ int main(int argc, char *argv[]) exit(1); } - rc1 = pthread_create(&th1, NULL, &f1, map); - rc2 = pthread_create(&th2, NULL, &f2, map); + rc1 = pthread_create(&th1, NULL, &thread_func_1, map); + rc2 = pthread_create(&th2, NULL, &thread_func_2, map); if (rc1 | rc2) { fail("Can't pthread_create");