summaryrefslogtreecommitdiff
path: root/test/testlock.c
diff options
context:
space:
mode:
authoraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2001-10-12 19:02:37 +0000
committeraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2001-10-12 19:02:37 +0000
commit12b4c074eb10c59f997bae4d206eb61a3e8b3ddc (patch)
tree2af113b28c0be29941ba39ac3a0c0c4e7cdb529c /test/testlock.c
parent3dab0bfdb94afcbca4527802cecb2dd800b4f07f (diff)
downloadlibapr-12b4c074eb10c59f997bae4d206eb61a3e8b3ddc.tar.gz
Let's just make these consistent. All have declared prototypes now, and
they all return apr_status_t. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62422 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testlock.c')
-rw-r--r--test/testlock.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/testlock.c b/test/testlock.c
index 44c34e6e6..cac60ce0f 100644
--- a/test/testlock.c
+++ b/test/testlock.c
@@ -85,11 +85,13 @@ void * APR_THREAD_FUNC thread_function(apr_thread_t *thd, void *data);
void * APR_THREAD_FUNC thread_mutex_function(apr_thread_t *thd, void *data);
void * APR_THREAD_FUNC thread_cond_producer(apr_thread_t *thd, void *data);
void * APR_THREAD_FUNC thread_cond_consumer(apr_thread_t *thd, void *data);
-apr_status_t test_exclusive(void);
apr_status_t test_rw(void);
-apr_status_t test_multiple_locking(const char *);
+apr_status_t test_exclusive(void);
+apr_status_t test_multiple_locking(const char *lockfile);
+apr_status_t test_thread_mutex(void);
+apr_status_t test_thread_rwlock(void);
apr_status_t test_cond(void);
-
+apr_status_t test_timeoutcond(void);
apr_file_t *in, *out, *err;
apr_lock_t *thread_rw_lock, *thread_lock;
@@ -257,7 +259,7 @@ void * APR_THREAD_FUNC thread_cond_consumer(apr_thread_t *thd, void *data)
return NULL;
}
-int test_rw(void)
+apr_status_t test_rw(void)
{
apr_thread_t *t1, *t2, *t3, *t4;
apr_status_t s1, s2, s3, s4;
@@ -399,7 +401,7 @@ apr_status_t test_multiple_locking(const char *lockfile)
return APR_SUCCESS;
}
-static apr_status_t test_thread_mutex(void)
+apr_status_t test_thread_mutex(void)
{
apr_thread_t *t1, *t2, *t3, *t4;
apr_status_t s1, s2, s3, s4;
@@ -447,7 +449,7 @@ static apr_status_t test_thread_mutex(void)
return APR_SUCCESS;
}
-static int test_thread_rwlock(void)
+apr_status_t test_thread_rwlock(void)
{
apr_thread_t *t1, *t2, *t3, *t4;
apr_status_t s1, s2, s3, s4;
@@ -568,7 +570,7 @@ apr_status_t test_cond(void)
return APR_SUCCESS;
}
-static apr_status_t test_timeoutcond(void)
+apr_status_t test_timeoutcond(void)
{
apr_status_t s;
apr_interval_time_t timeout;