subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1527286 - /subversion/trunk/subversion/svnserve/svnserve.c
Date Sun, 29 Sep 2013 08:46:19 GMT
Author: stsp
Date: Sun Sep 29 08:46:18 2013
New Revision: 1527286

URL: http://svn.apache.org/r1527286
Log:
In svnserve, ensure that all use of the shared pool data type is wrapped
in #if APR_HAS_THREADS.

* subversion/svnserve/svnserve.c
  (serve_thread_t): Define the shared_pool member within #if APR_HAS_THREADS.
   There is no need to declare the shared_pool as a 'struct' after typedef.
  (main): No need to declare the shared_pool as a 'struct' after typedef.

Found by: brane

Modified:
    subversion/trunk/subversion/svnserve/svnserve.c

Modified: subversion/trunk/subversion/svnserve/svnserve.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/svnserve.c?rev=1527286&r1=1527285&r2=1527286&view=diff
==============================================================================
--- subversion/trunk/subversion/svnserve/svnserve.c (original)
+++ subversion/trunk/subversion/svnserve/svnserve.c Sun Sep 29 08:46:18 2013
@@ -526,7 +526,9 @@ serve_socket(apr_socket_t *usock,
 struct serve_thread_t {
   apr_socket_t *usock;
   serve_params_t *params;
-  struct shared_pool_t *shared_pool;
+#if APR_HAS_THREADS
+  shared_pool_t *shared_pool;
+#endif
 };
 
 #if APR_HAS_THREADS
@@ -604,7 +606,7 @@ int main(int argc, const char *argv[])
   apr_status_t status;
   apr_proc_t proc;
 #if APR_HAS_THREADS
-  struct shared_pool_t *shared_pool;
+  shared_pool_t *shared_pool;
   struct serve_thread_t *thread_data;
 #if HAVE_THREADPOOLS
   apr_thread_pool_t *threads;



Mime
View raw message