Browse code

Correct volatile

git-svn: trunk@1522

Nigel Horne authored on 2005/05/07 01:22:07
Showing 1 changed files
... ...
@@ -22,7 +22,7 @@
22 22
  *
23 23
  * For installation instructions see the file INSTALL that came with this file
24 24
  */
25
-static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.195 2005/05/06 07:31:33 nigelhorne Exp $";
25
+static	char	const	rcsid[] = "$Id: clamav-milter.c,v 1.196 2005/05/06 16:22:07 nigelhorne Exp $";
26 26
 
27 27
 #define	CM_VERSION	"0.84f"
28 28
 
... ...
@@ -368,10 +368,10 @@ static	int	debug_level = 0;
368 368
 static	pthread_mutex_t	n_children_mutex = PTHREAD_MUTEX_INITIALIZER;
369 369
 static	pthread_cond_t	n_children_cond = PTHREAD_COND_INITIALIZER;
370 370
 static	volatile	unsigned	int	n_children = 0;
371
-static	volatile	unsigned	int	max_children = 0;
371
+static	unsigned	int	max_children = 0;
372 372
 static	pthread_mutex_t	accept_mutex = PTHREAD_MUTEX_INITIALIZER;
373 373
 static	pthread_cond_t	accept_cond = PTHREAD_COND_INITIALIZER;
374
-static	int	accept_inputs;
374
+static	volatile	int	accept_inputs;
375 375
 static	int	child_timeout = 0;	/* number of seconds to wait for
376 376
 					 * a child to die. Set to 0 to
377 377
 					 * wait forever