summaryrefslogtreecommitdiff
path: root/test/testlock.c
diff options
context:
space:
mode:
authorAaron Bannert <aaron@apache.org>2001-10-12 19:02:37 +0000
committerAaron Bannert <aaron@apache.org>2001-10-12 19:02:37 +0000
commitbf6e891823e3ceca87af9389a1468cd9b3f747d6 (patch)
tree2af113b28c0be29941ba39ac3a0c0c4e7cdb529c /test/testlock.c
parentf3256ddef93c845d0361a051c9f273fbf968c4ef (diff)
downloadapr-bf6e891823e3ceca87af9389a1468cd9b3f747d6.tar.gz
Let's just make these consistent. All have declared prototypes now, and
they all return apr_status_t. git-svn-id: https://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;