1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-15 16:29:15 -04:00
ports/net/spserver/files/patch-testthreadpool.cpp
2007-08-24 07:53:47 +00:00

15 lines
492 B
C++

--- spserver/testthreadpool.cpp.orig Wed Aug 22 22:04:05 2007
+++ spserver/testthreadpool.cpp Thu Aug 23 07:34:14 2007
@@ -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);
}