summaryrefslogtreecommitdiffstats
path: root/server/mpm/winnt/mpm_winnt.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2000-11-29 02:57:46 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2000-11-29 02:57:46 +0100
commitf534dfa48c6536a19c39b64b79b445ac5c4f9c46 (patch)
treeec471931720a75152cc4e0bbdc6505a3ac5f14cb /server/mpm/winnt/mpm_winnt.c
parent Clean up some compiler warnings (there remain some float=double and (diff)
downloadapache2-f534dfa48c6536a19c39b64b79b445ac5c4f9c46.tar.xz
apache2-f534dfa48c6536a19c39b64b79b445ac5c4f9c46.zip
Compile break when I changed 'thread' in mpm_winnt.h to a HANDLE type. Fixed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87117 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--server/mpm/winnt/mpm_winnt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c
index 5b932ba97b..16aafee944 100644
--- a/server/mpm/winnt/mpm_winnt.c
+++ b/server/mpm/winnt/mpm_winnt.c
@@ -1163,7 +1163,7 @@ static void worker_main(int child_num)
/* TODO: Add code to clean-up completion contexts here */
}
-static void cleanup_thread(thread **handles, int *thread_cnt, int thread_to_clean)
+static void cleanup_thread(thread *handles, int *thread_cnt, int thread_to_clean)
{
int i;
@@ -1204,7 +1204,7 @@ static void child_main()
char* exit_event_name;
int nthreads = ap_threads_per_child;
int tid;
- thread **child_handles;
+ thread *child_handles;
int rv;
time_t end_time;
int i;
@@ -1267,10 +1267,10 @@ static void child_main()
/* Create the worker thread pool */
ap_log_error(APLOG_MARK,APLOG_INFO, APR_SUCCESS, server_conf,
"Child %d: Starting %d worker threads.", my_pid, nthreads);
- child_handles = (thread *) alloca(nthreads * sizeof(int));
+ child_handles = (thread) alloca(nthreads * sizeof(int));
for (i = 0; i < nthreads; i++) {
- child_handles[i] = (thread *) _beginthreadex(NULL, 0, (LPTHREAD_START_ROUTINE) worker_main,
- NULL, 0, &tid);
+ child_handles[i] = (thread) _beginthreadex(NULL, 0, (LPTHREAD_START_ROUTINE) worker_main,
+ NULL, 0, &tid);
}
/* Begin accepting connections */