fielding 01/04/12 00:20:32
Modified: lib apr_pools.c
Log:
Eliminate usage of long long in favor of apr_uint64_t.
Problem identified by Christian Gross.
Revision Changes Path
1.92 +5 -4 apr/lib/apr_pools.c
Index: apr_pools.c
===================================================================
RCS file: /home/cvs/apr/lib/apr_pools.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- apr_pools.c 2001/04/04 00:26:45 1.91
+++ apr_pools.c 2001/04/12 07:20:31 1.92
@@ -206,8 +206,8 @@
#endif /* APR_POOL_DEBUG */
#ifdef ALLOC_STATS
-static unsigned long long num_free_blocks_calls;
-static unsigned long long num_blocks_freed;
+static apr_uint64_t num_free_blocks_calls;
+static apr_uint64_t num_blocks_freed;
static unsigned max_blocks_in_one_free;
static unsigned num_malloc_calls;
static unsigned num_malloc_bytes;
@@ -525,8 +525,9 @@
static void dump_stats(void)
{
fprintf(stderr,
- "alloc_stats: [%d] #free_blocks %llu #blocks %llu max "
- "%u #malloc %u #bytes %u\n",
+ "alloc_stats: [%d] #free_blocks %" APR_INT64_T_FMT
+ " #blocks %" APR_INT64_T_FMT
+ " max %u #malloc %u #bytes %u\n",
(int) getpid(),
num_free_blocks_calls,
num_blocks_freed,