Fix building on current/amd64.

This commit is contained in:
Vanilla I. Shu 2007-08-09 09:23:54 +00:00
parent 19e642669c
commit b7d0d9c75a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197374

View file

@ -0,0 +1,15 @@
--- testthreadpool.cpp.orig 2007-08-09 17:14:03.000000000 +0800
+++ testthreadpool.cpp 2007-08-09 17:15:20.000000000 +0800
@@ -16,10 +16,10 @@
void threadFunc( void *arg )
{
- int seconds = (int) arg;
+ int seconds = atoi ((char *) arg);
fprintf( stdout, " in threadFunc %d\n", seconds );
- fprintf( stdout, " thread#%ld\n", pthread_self() );
+ fprintf( stdout, " thread#%ld\n", (long int)pthread_self() );
sleep( seconds );
fprintf( stdout, " done threadFunc %d\n", seconds);
}