From 132f5e5f8d5a48ddf1704a608bf31ae979da662b Mon Sep 17 00:00:00 2001
From: Uros Bizjak <ubizjak@gmail.com>
Date: Wed, 14 Mar 2007 08:53:32 +0100
Subject: [PATCH] pass59-frag.c (main): Fix casting of arg.

        * testsuite/libmudflap.cth/pass59-frag.c (main): Fix casting of arg.

From-SVN: r122911
---
 libmudflap/ChangeLog                              | 4 ++++
 libmudflap/testsuite/libmudflap.cth/pass59-frag.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index b331aab4a7e..8a86b6606f5 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,7 @@
+2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
+
+	* testsuite/libmudflap.cth/pass59-frag.c (main): Fix casting of arg.
+
 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
 
 	* Makefile.am: Add dummy install-pdf target.
diff --git a/libmudflap/testsuite/libmudflap.cth/pass59-frag.c b/libmudflap/testsuite/libmudflap.cth/pass59-frag.c
index bf6c293136d..49013067705 100644
--- a/libmudflap/testsuite/libmudflap.cth/pass59-frag.c
+++ b/libmudflap/testsuite/libmudflap.cth/pass59-frag.c
@@ -13,8 +13,8 @@ void* test_thread(void* arg)
 int main()
 {
   pthread_t thread;
-  int arg = 0;
-  pthread_create(&thread, NULL, test_thread, (void*)arg);
+  void *arg = NULL;
+  pthread_create(&thread, NULL, test_thread, arg);
   pthread_join(thread, NULL);
   pthread_exit(NULL);
   return 0;