summaryrefslogtreecommitdiff
path: root/devel/upnp/files/patch-threadutil::src::ThreadPool.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/upnp/files/patch-threadutil::src::ThreadPool.c')
-rw-r--r--devel/upnp/files/patch-threadutil::src::ThreadPool.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/upnp/files/patch-threadutil::src::ThreadPool.c b/devel/upnp/files/patch-threadutil::src::ThreadPool.c
new file mode 100644
index 000000000000..12be8d316ed1
--- /dev/null
+++ b/devel/upnp/files/patch-threadutil::src::ThreadPool.c
@@ -0,0 +1,20 @@
+--- threadutil/src/ThreadPool.c.orig Sat Apr 5 23:20:04 2003
++++ threadutil/src/ThreadPool.c Sat Apr 5 23:20:47 2003
+@@ -341,7 +341,7 @@
+ struct timeb t;
+
+ ftime( &t );
+- srand( ( unsigned int )t.millitm + ithread_get_current_thread_id( ) );
++ srand( ( unsigned int )t.millitm + ( unsigned int )ithread_get_current_thread_id( ) );
+ }
+
+ /****************************************************************************
+@@ -1455,7 +1455,7 @@
+ assert( stats != NULL ); if( stats == NULL ) {
+ return;}
+
+- printf( "ThreadPoolStats at Time: %ld\n", time( NULL ) );
++ printf( "ThreadPoolStats at Time: %lf\n", time( NULL ) );
+ printf
+ ( "Average Wait in High Priority Q in milliseconds: %lf\n",
+ stats->avgWaitHQ );