pass59-frag.c (main): Fix casting of arg.

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

From-SVN: r122911
This commit is contained in:
Uros Bizjak 2007-03-14 08:53:32 +01:00 committed by Uros Bizjak
parent 8c5fd59f94
commit 132f5e5f8d
2 changed files with 6 additions and 2 deletions

View 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.

View 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;