aboutsummaryrefslogtreecommitdiff
path: root/net/spserver
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2007-08-09 09:23:54 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2007-08-09 09:23:54 +0000
commitb7d0d9c75a75594e2cd4a02bef44c724e899e503 (patch)
tree83e9bce446da6961fbd1ef11e385d725f66e20e8 /net/spserver
parent19e642669cc39634d43cca91461eaf8281f4aac5 (diff)
downloadports-b7d0d9c75a75594e2cd4a02bef44c724e899e503.tar.gz
ports-b7d0d9c75a75594e2cd4a02bef44c724e899e503.zip
Notes
Diffstat (limited to 'net/spserver')
-rw-r--r--net/spserver/files/patch-testthreadpool.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/spserver/files/patch-testthreadpool.cpp b/net/spserver/files/patch-testthreadpool.cpp
new file mode 100644
index 000000000000..e00ab174ad2f
--- /dev/null
+++ b/net/spserver/files/patch-testthreadpool.cpp
@@ -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);
+ }