From 990ff390f7b756798ab1920f21d6077c76bbb3a3 Mon Sep 17 00:00:00 2001 From: jerenkrantz Date: Mon, 30 Dec 2002 06:19:27 +0000 Subject: Use apr_uint32_t rather than apr_size_t for the maximum queue size. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58815 13f79535-47bb-0310-9956-ffa450edef68 --- misc/apr_queue.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'misc') diff --git a/misc/apr_queue.c b/misc/apr_queue.c index f5548c12..4808a71f 100644 --- a/misc/apr_queue.c +++ b/misc/apr_queue.c @@ -81,10 +81,10 @@ struct apr_queue_t { void **data; - apr_size_t nelts; /**< # elements */ - apr_size_t in; /**< next empty location */ - apr_size_t out; /**< next filled location */ - apr_size_t bounds;/**< max size of queue */ + apr_uint32_t nelts; /**< # elements */ + apr_uint32_t in; /**< next empty location */ + apr_uint32_t out; /**< next filled location */ + apr_uint32_t bounds;/**< max size of queue */ apr_thread_mutex_t *one_big_mutex; apr_thread_cond_t *not_empty; apr_thread_cond_t *not_full; @@ -136,7 +136,7 @@ static apr_status_t queue_destroy(void *data) * Initialize the apr_queue_t. */ APU_DECLARE(apr_status_t) apr_queue_create(apr_queue_t **q, - apr_size_t queue_capacity, + apr_uint32_t queue_capacity, apr_pool_t *a) { apr_status_t rv; @@ -288,7 +288,7 @@ APU_DECLARE(apr_status_t) apr_queue_trypush(apr_queue_t *queue, void *data) /** * not thread safe */ -APU_DECLARE(apr_size_t) apr_queue_size(apr_queue_t *queue) { +APU_DECLARE(apr_uint32_t) apr_queue_size(apr_queue_t *queue) { return queue->nelts; } -- cgit v1.2.1