This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PowerPC64 port part 7 of 7


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]