OSDN Git Service

* testsuite/libmudflap.cth/pass59-frag.c (main): Fix casting of arg.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Mar 2007 07:53:32 +0000 (07:53 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Mar 2007 07:53:32 +0000 (07:53 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122911 138bc75d-0d04-0410-961f-82ee72b054a4

libmudflap/ChangeLog
libmudflap/testsuite/libmudflap.cth/pass59-frag.c

index b331aab..8a86b66 100644 (file)
@@ -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.
index bf6c293..4901306 100644 (file)
@@ -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;