]> granicus.if.org Git - apache/commitdiff
Fixed some win32 types.
authorGuenter Knauf <fuankg@apache.org>
Mon, 29 Nov 2010 18:33:28 +0000 (18:33 +0000)
committerGuenter Knauf <fuankg@apache.org>
Mon, 29 Nov 2010 18:33:28 +0000 (18:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1040220 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/win32/mod_win32.c
server/mpm/winnt/child.c
server/mpm/winnt/mpm_winnt.c

index ae0e87b252f204b6e58294b5549d605a74696461..f711f7d50bd9dc7eb9b6d62e00e0268dd66bbeb1 100644 (file)
@@ -260,7 +260,7 @@ static apr_array_header_t *split_argv(apr_pool_t *p, const char *interp,
                     break;
                 }
                 ap_unescape_url(w);
-                prep_string(&w, p);
+                prep_string((const char**)&w, p);
                 arg = (const char**)apr_array_push(args);
                 *arg = ap_escape_shell_cmd(p, w);
             }
@@ -353,7 +353,7 @@ static apr_array_header_t *split_argv(apr_pool_t *p, const char *interp,
                 break;
             }
             ap_unescape_url(w);
-            prep_string(&w, p);
+            prep_string((const char**)&w, p);
             arg = (const char**)apr_array_push(args);
             *arg = ap_escape_shell_cmd(p, w);
         }
index ba52526276eb7a6ddc8a26e1f219a2491abc5fe9..6fc31e8c3ea7db09515a54a74218602bcd12c5b8 100644 (file)
@@ -106,8 +106,8 @@ static apr_thread_mutex_t  *child_lock;
 static apr_thread_mutex_t  *qlock;
 static winnt_conn_ctx_t *qhead = NULL;
 static winnt_conn_ctx_t *qtail = NULL;
-static int num_completion_contexts = 0;
-static int max_num_completion_contexts = 0;
+static apr_uint32_t num_completion_contexts = 0;
+static apr_uint32_t max_num_completion_contexts = 0;
 static HANDLE ThreadDispatchIOCP = NULL;
 static HANDLE qwait_event = NULL;
 
@@ -716,7 +716,7 @@ static winnt_conn_ctx_t *winnt_get_connection(winnt_conn_ctx_t *context)
  * Main entry point for the worker threads. Worker threads block in
  * win*_get_connection() awaiting a connection to service.
  */
-static unsigned int __stdcall worker_main(void *thread_num_val)
+static DWORD __stdcall worker_main(void *thread_num_val)
 {
     static int requests_this_child = 0;
     winnt_conn_ctx_t *context = NULL;
@@ -851,7 +851,7 @@ static void cleanup_thread(HANDLE *handles, int *thread_cnt,
  */
 static void create_listener_thread()
 {
-    int tid;
+    unsigned tid;
     int num_listeners = 0;
     /* Start an accept thread per listener
      * XXX: Why would we have a NULL sd in our listeners?
@@ -896,7 +896,7 @@ void child_main(apr_pool_t *pconf)
     int watch_thread;
     int time_remains;
     int cld;
-    int tid;
+    DWORD tid;
     int rv;
     int i;
 
index 81e7dee1fd724475757f3f984311fdb5e3de547a..cb7c22c9049d3e68ad387d2a7d6aae1454712c27 100644 (file)
@@ -616,7 +616,8 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_
     env[envc] = pidbuf;
     env[envc + 1] = NULL;
 
-    rv = apr_proc_create(&new_child, cmd, args, env, attr, ptemp);
+    rv = apr_proc_create(&new_child, cmd, (const char * const *)args,
+                         (const char * const *)env, attr, ptemp);
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf,
                      "Parent: Failed to create the child process.");