diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-07-07 15:23:31 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-07-07 15:23:31 +0000 |
commit | 0302fece014004a2df366dacc2b8e9416264a978 (patch) | |
tree | f86a7d2d974305cb60123e6ecce0b5e9e674553b /linuxthreads/Examples/ex4.c | |
parent | 8bb4abf5cf3700a0be10604240e616a17ed25503 (diff) | |
download | glibc-0302fece014004a2df366dacc2b8e9416264a978.tar glibc-0302fece014004a2df366dacc2b8e9416264a978.tar.gz glibc-0302fece014004a2df366dacc2b8e9416264a978.tar.bz2 glibc-0302fece014004a2df366dacc2b8e9416264a978.zip |
Update.
* sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Add
__ino64_t definition.
Diffstat (limited to 'linuxthreads/Examples/ex4.c')
-rw-r--r-- | linuxthreads/Examples/ex4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/Examples/ex4.c b/linuxthreads/Examples/ex4.c index 83bc54c913..8ad7454eb8 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); |