about summary refs log tree commit diff
path: root/nptl/tst-basic1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-15 07:54:39 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-15 07:54:39 +0000
commit92ed3daf013788e18a1bb339721aa76389039863 (patch)
treee352d669df04589cba266925d9b0edb08f92834e /nptl/tst-basic1.c
parent9b89567d852543f4610fcc31c6aacecb9c658b42 (diff)
downloadglibc-92ed3daf013788e18a1bb339721aa76389039863.tar.gz
glibc-92ed3daf013788e18a1bb339721aa76389039863.tar.xz
glibc-92ed3daf013788e18a1bb339721aa76389039863.zip
Update.
	* tst-basic1.c (do_test): Add cast to avoid warning.
	* tst-basic2.c (do_test): Likewise.
Diffstat (limited to 'nptl/tst-basic1.c')
-rw-r--r--nptl/tst-basic1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/tst-basic1.c b/nptl/tst-basic1.c
index 8bb736ec6f..7637c8e497 100644
--- a/nptl/tst-basic1.c
+++ b/nptl/tst-basic1.c
@@ -48,7 +48,7 @@ do_test (void)
   int i;
 
   for (i = 0; i < N; ++i)
-    if (pthread_create (&t[i], NULL, tf, (void *) (i + 1)) != 0)
+    if (pthread_create (&t[i], NULL, tf, (void *) (long int) (i + 1)) != 0)
       {
 	write (2, "create failed\n", 14);
 	_exit (1);
@@ -65,7 +65,7 @@ do_test (void)
 	  printf ("join failed: %d\n", e);
 	  _exit (1);
 	}
-      else if (r != (void *) (i + 1))
+      else if (r != (void *) (long int) (i + 1))
 	{
 	  write (2, "result wrong\n", 13);
 	  _exit (1);