From 81be2513025a8cff142a8373a7a5d1692111932c Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Mon, 27 Aug 2001 19:34:34 +0000 Subject: [PATCH] Remove some warnings from the perchild MPM git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90733 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/experimental/perchild/perchild.c | 6 +++--- server/mpm/perchild/perchild.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index 37d695fe03..e5ef157ed5 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -580,9 +580,10 @@ static void *worker_thread(apr_thread_t *thd, void *arg) apr_pool_t *tpool; /* Pool for this thread */ apr_pool_t *ptrans; /* Pool for per-transaction stuff */ apr_socket_t *sd = NULL; + volatile int last_pollfd = 0; + volatile int thread_just_started = 1; int srv; - int curr_pollfd, last_pollfd = 0; - int thread_just_started = 1; + int curr_pollfd; int thread_num = *((int *) arg); long conn_id = child_num * HARD_THREAD_LIMIT + thread_num; apr_pollfd_t *pollset; @@ -877,7 +878,6 @@ static void child_main(int child_num_arg) int i; ap_listen_rec *lr; apr_status_t rv; - apr_thread_t *thread; my_pid = getpid(); child_num = child_num_arg; diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index 37d695fe03..e5ef157ed5 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -580,9 +580,10 @@ static void *worker_thread(apr_thread_t *thd, void *arg) apr_pool_t *tpool; /* Pool for this thread */ apr_pool_t *ptrans; /* Pool for per-transaction stuff */ apr_socket_t *sd = NULL; + volatile int last_pollfd = 0; + volatile int thread_just_started = 1; int srv; - int curr_pollfd, last_pollfd = 0; - int thread_just_started = 1; + int curr_pollfd; int thread_num = *((int *) arg); long conn_id = child_num * HARD_THREAD_LIMIT + thread_num; apr_pollfd_t *pollset; @@ -877,7 +878,6 @@ static void child_main(int child_num_arg) int i; ap_listen_rec *lr; apr_status_t rv; - apr_thread_t *thread; my_pid = getpid(); child_num = child_num_arg; -- 2.50.1