[PATCH] PowerPC64 port part 7 of 7

Jakub Jelinek jakub@redhat.com
Mon Aug 19 12:56:00 GMT 2002


On Mon, Aug 19, 2002 at 01:53:03PM -0500, Steven Munroe wrote:
> diff -rc2PN -x *.orig libc23-cvstip-20020815/linuxthreads/Examples/ex17.c libc23/linuxthreads/Examples/ex17.c
> *** libc23-cvstip-20020815/linuxthreads/Examples/ex17.c	Tue Jul 31 14:43:34 2001
> --- libc23/linuxthreads/Examples/ex17.c	Thu Aug 15 16:54:50 2002
> ***************
> *** 54,58 ****
>     if (stack2 != stack || stacksize != STACKSIZE)
>       {
> !       printf ("first pthread_attr_getstack returned different stack (%p,%x)\n"
>   	      "than was set by setstack (%p,%x)\n",
>   	      stack2, stacksize, stack, STACKSIZE);
> --- 54,58 ----
>     if (stack2 != stack || stacksize != STACKSIZE)
>       {
> !       printf ("first pthread_attr_getstack returned different stack (%p,%lx)\n"
>   	      "than was set by setstack (%p,%x)\n",
>   	      stack2, stacksize, stack, STACKSIZE);

This is wrong. As stacksize is size_t, it needs to be (%p,%zx).

	Jakub



More information about the Libc-alpha mailing list