httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r731971 - /httpd/httpd/trunk/modules/arch/win32/mod_win32.c
Date Tue, 06 Jan 2009 15:22:39 GMT
Author: wrowe
Date: Tue Jan  6 07:22:38 2009
New Revision: 731971

URL: http://svn.apache.org/viewvc?rev=731971&view=rev
Log:
eliminating 9x legacy code from mod_win32

Modified:
    httpd/httpd/trunk/modules/arch/win32/mod_win32.c

Modified: httpd/httpd/trunk/modules/arch/win32/mod_win32.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/win32/mod_win32.c?rev=731971&r1=731970&r2=731971&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/win32/mod_win32.c (original)
+++ httpd/httpd/trunk/modules/arch/win32/mod_win32.c Tue Jan  6 07:22:38 2009
@@ -32,9 +32,6 @@
 #include "apr_lib.h"
 #include "ap_regkey.h"
 
-extern OSVERSIONINFO osver; /* hiding in mpm_winnt.c */
-static int win_nt;
-
 /*
  * CGI Script stuff for Win32...
  */
@@ -263,9 +260,7 @@
                     break;
                 }
                 ap_unescape_url(w);
-                if (win_nt) {
-                   prep_string(&w, p);
-                }
+                prep_string(&w, p);
                 arg = (const char**)apr_array_push(args);
                 *arg = ap_escape_shell_cmd(p, w);
             }
@@ -358,9 +353,7 @@
                 break;
             }
             ap_unescape_url(w);
-            if (win_nt) {
-                prep_string(&w, p);
-            }
+            prep_string(&w, p);
             arg = (const char**)apr_array_push(args);
             *arg = ap_escape_shell_cmd(p, w);
         }
@@ -528,7 +521,7 @@
      * application (following the OEM or Ansi code page in effect.)
      */
     for (i = 0; i < elts_arr->nelts; ++i) {
-        if (win_nt && elts[i].key && *elts[i].key
+        if (elts[i].key && *elts[i].key
                 && (strncmp(elts[i].key, "HTTP_", 5) == 0
                  || strncmp(elts[i].key, "SERVER_", 7) == 0
                  || strncmp(elts[i].key, "REQUEST_", 8) == 0
@@ -541,16 +534,9 @@
     return APR_SUCCESS;
 }
 
-static int win32_pre_config(apr_pool_t *pconf_, apr_pool_t *plog, apr_pool_t *ptemp)
-{
-    win_nt = (osver.dwPlatformId != VER_PLATFORM_WIN32_WINDOWS);
-    return OK;
-}
-
 static void register_hooks(apr_pool_t *p)
 {
     APR_REGISTER_OPTIONAL_FN(ap_cgi_build_command);
-    ap_hook_pre_config(win32_pre_config, NULL, NULL, APR_HOOK_MIDDLE);
 }
 
 static const command_rec win32_cmds[] = {



Mime
View raw message