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/ex1.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/ex1.c')
-rw-r--r-- | linuxthreads/Examples/ex1.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/linuxthreads/Examples/ex1.c b/linuxthreads/Examples/ex1.c index c399fab894..f455ecfaf0 100644 --- a/linuxthreads/Examples/ex1.c +++ b/linuxthreads/Examples/ex1.c @@ -17,15 +17,15 @@ void * process(void * arg) return NULL; } -int main() +int main(void) { int retcode; pthread_t th_a, th_b; void * retval; - retcode = pthread_create(&th_a, NULL, process, "a"); + retcode = pthread_create(&th_a, NULL, process, (void *) "a"); if (retcode != 0) fprintf(stderr, "create a failed %d\n", retcode); - retcode = pthread_create(&th_b, NULL, process, "b"); + retcode = pthread_create(&th_b, NULL, process, (void *) "b"); if (retcode != 0) fprintf(stderr, "create b failed %d\n", retcode); retcode = pthread_join(th_a, &retval); if (retcode != 0) fprintf(stderr, "join a failed %d\n", retcode); @@ -33,4 +33,3 @@ int main() if (retcode != 0) fprintf(stderr, "join b failed %d\n", retcode); return 0; } - |