]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
pthread_t is not always an unsigned long, a type cast is needed.
authorserassio <>
Sat, 23 Apr 2005 22:53:18 +0000 (22:53 +0000)
committerserassio <>
Sat, 23 Apr 2005 22:53:18 +0000 (22:53 +0000)
src/DiskIO/DiskThreads/aiops.cc

index 5eba144ef16834a677484ee469b8c6924d6a4d2a..946dddc62f459fc7beeeedd85ba6c6a006746937 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: aiops.cc,v 1.4 2005/04/06 20:36:10 serassio Exp $
+ * $Id: aiops.cc,v 1.5 2005/04/23 16:53:18 serassio Exp $
  *
  * DEBUG: section 43    AIOPS
  * AUTHOR: Stewart Forster <slf@connect.com.au>
@@ -1091,7 +1091,7 @@ squidaio_stats(StoreEntry * sentry)
     threadp = threads;
 
     for (i = 0; i < NUMTHREADS; i++) {
-        storeAppendPrintf(sentry, "%i\t0x%lx\t%ld\n", i + 1, threadp->thread, threadp->requests);
+        storeAppendPrintf(sentry, "%i\t0x%lx\t%ld\n", i + 1, (unsigned long)threadp->thread, threadp->requests);
         threadp = threadp->next;
     }
 }