From 0302fece014004a2df366dacc2b8e9416264a978 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 7 Jul 1998 15:23:31 +0000 Subject: Update. * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Add __ino64_t definition. --- linuxthreads/Examples/ex4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linuxthreads/Examples/ex4.c') diff --git a/linuxthreads/Examples/ex4.c b/linuxthreads/Examples/ex4.c index 83bc54c..8ad7454 100644 --- a/linuxthreads/Examples/ex4.c +++ b/linuxthreads/Examples/ex4.c @@ -40,7 +40,7 @@ static void str_alloc_destroy_accu(void * accu); /* Thread-safe version of str_accumulate */ -char * str_accumulate(char * s) +char * str_accumulate(const char * s) { char * accu; @@ -97,8 +97,8 @@ int main(int argc, char ** argv) pthread_t th1, th2; res = str_accumulate("Result of "); - pthread_create(&th1, NULL, process, "first"); - pthread_create(&th2, NULL, process, "second"); + pthread_create(&th1, NULL, process, (void *) "first"); + pthread_create(&th2, NULL, process, (void *) "second"); res = str_accumulate("initial thread"); printf("Thread %lx: \"%s\"\n", pthread_self(), res); pthread_join(th1, NULL); -- cgit v1.1