]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/trace/lib_trace.c
ncurses 5.7 - patch 20081213
[ncurses.git] / ncurses / trace / lib_trace.c
index 202dc382b0b48b9b8ed86f2e6d3f8c2e47df37ac..743b1f64f1aeaf39476190b7a89f1e08bb7fc4cd 100644 (file)
@@ -46,7 +46,7 @@
 
 #include <ctype.h>
 
-MODULE_ID("$Id: lib_trace.c,v 1.70 2008/08/16 23:13:52 tom Exp $")
+MODULE_ID("$Id: lib_trace.c,v 1.71 2008/08/23 18:04:29 tom Exp $")
 
 NCURSES_EXPORT_VAR(unsigned) _nc_tracing = 0; /* always define this */
 
@@ -183,7 +183,7 @@ _nc_va_tracef(const char *fmt, va_list ap)
 # if USE_WEAK_SYMBOLS
        if ((pthread_self))
 # endif
-           fprintf(TraceFP, "%#lx:", (long) pthread_self());
+           fprintf(TraceFP, "%#lx:", (long) (void *) pthread_self());
 #endif
        if (before || after) {
            int n;