apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject [PATCH] fix rwlock decl warning [repost]
Date Mon, 08 Oct 2001 18:26:37 GMT
[reposted from a week ago, should be a quickie]

This patch removes a function stub that doesn't exist in the new lock API.
We don't need it because we only have apr_thread_rwlock_rdlock() and
apr_thread_rwlock_wrlock() defined in the headers. This patch clears
a compiler warning.

Details: The unix implementation has a passthrough implementation for
platforms that have posix rwlocks, and another set of implementations
that will be for platforms like Solaris 2.6 where posix rwlocks don't
exist. Somehow when this second set of functions were commited, an
extra function got added.


Index: srclib/apr/locks/unix/thread_rwlock.c
RCS file: /home/cvspublic/apr/locks/unix/thread_rwlock.c,v
retrieving revision 1.4
diff -u -r1.4 thread_rwlock.c
--- srclib/apr/locks/unix/thread_rwlock.c	2001/09/29 14:14:07	1.4
+++ srclib/apr/locks/unix/thread_rwlock.c	2001/10/01 16:01:42
@@ -220,11 +220,6 @@
     return APR_ENOTIMPL;
-APR_DECLARE(apr_status_t) apr_thread_rwlock_lock(apr_thread_rwlock_t *rwlock)
-    return APR_ENOTIMPL;
 APR_DECLARE(apr_status_t) apr_thread_rwlock_unlock(apr_thread_rwlock_t *rwlock)
     return APR_ENOTIMPL;

View raw message