Re: URGENT PATCH: pthreads lockup fix



On 2001.08.20 00:25:33 +0100 Ali Akcaagac wrote:

> 
> --- /mnt/private/temp/cvstree/balsa/src/main-window.c	Sun Aug 19
> 21:53:33 2001
> +++ balsa/src/main-window.c	Mon Aug 20 01:19:05 2001
> @@ -1582,7 +1582,7 @@
>  
>      /* initiate threads */
>      pthread_create(&get_mail_thread,
> -		   NULL, (void *) &check_messages_thread, (void *)0);
> +		   NULL, (void *) &check_messages_thread, NULL);
>      

this shouldn't make a diference a diference in most architectures 
(well, at least in the archs most people use :))

anyway, we should find the primate who typed (void *)0 and give him a 
good slaping. humm .. hope it wasn't me.

NULL is *always* what you are trying to achieve with "(void *)0". that's
why NULL is there.

monday morning - no cofee - feel my wrath.

-- 
Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey: 0x1FC57F0A
http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5 7F0A
Software is like sex; it's better when it's free. - Linus Torvalds




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]