about summary refs log tree commit diff
path: root/linuxthreads/Examples/ex1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-07 15:23:31 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-07 15:23:31 +0000
commit0302fece014004a2df366dacc2b8e9416264a978 (patch)
treef86a7d2d974305cb60123e6ecce0b5e9e674553b /linuxthreads/Examples/ex1.c
parent8bb4abf5cf3700a0be10604240e616a17ed25503 (diff)
downloadglibc-0302fece014004a2df366dacc2b8e9416264a978.tar.gz
glibc-0302fece014004a2df366dacc2b8e9416264a978.tar.xz
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.c7
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;
 }
-