You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gs...@apache.org on 2016/11/17 09:34:56 UTC
svn commit: r1770134 - /apr/apr/branches/1.6.x/test/testprocmutex.c
Author: gsmith
Date: Thu Nov 17 09:34:56 2016
New Revision: 1770134
URL: http://svn.apache.org/viewvc?rev=1770134&view=rev
Log:
revert r1770128
Modified:
apr/apr/branches/1.6.x/test/testprocmutex.c
Modified: apr/apr/branches/1.6.x/test/testprocmutex.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/test/testprocmutex.c?rev=1770134&r1=1770133&r2=1770134&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/test/testprocmutex.c (original)
+++ apr/apr/branches/1.6.x/test/testprocmutex.c Thu Nov 17 09:34:56 2016
@@ -25,11 +25,6 @@
#include <stdlib.h>
#include "testutil.h"
-typedef struct lockmech {
- apr_lockmech_e num;
- const char *name;
-} lockmech_t;
-
#if APR_HAS_FORK
#define MAX_ITER 200
@@ -40,6 +35,11 @@ typedef struct lockmech {
static apr_proc_mutex_t *proc_lock;
static volatile int *x;
+typedef struct lockmech {
+ apr_lockmech_e num;
+ const char *name;
+} lockmech_t;
+
/* a slower more racy way to implement (*x)++ */
static int increment(int n)
{