This is the mail archive of the 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]

[PATCH] PPC Linuxthreads tls.h

The powerpc common TLS_INIT_TP macro generates a int to pointer
assignment warning. Changed the trailing ,0 to ,NULL.

2003-03-03  Steven Munroe  <sjmunroe at us dot ibm dot com>

	* sysdeps/powerpc/tls.h (TLS_INIT_TP): Cleanup assignment

Steven Munroe
sjmunroe at us dot ibm dot com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
diff -rupP libc23-cvstip-20030228/linuxthreads/sysdeps/powerpc/tls.h libc23/linuxthreads/sysdeps/powerpc/tls.h
--- libc23-cvstip-20030228/linuxthreads/sysdeps/powerpc/tls.h	2003-02-27 14:47:12.000000000 -0600
+++ libc23/linuxthreads/sysdeps/powerpc/tls.h	2003-03-01 11:00:00.000000000 -0600
@@ -99,7 +99,7 @@ typedef struct
    special attention since 'errno' is not yet available and if the
    operation can cause a failure 'errno' must not be touched.  */
-    (__thread_register = (void *) (TCBP) + TLS_TCB_OFFSET + TLS_TCB_SIZE, 0)
+    (__thread_register = (void *) (TCBP) + TLS_TCB_OFFSET + TLS_TCB_SIZE, NULL)
 /* Return the address of the dtv for the current thread.  */
 #  define THREAD_DTV() \

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