]> granicus.if.org Git - apache/commitdiff
* modules/proxy/proxy_ajp.c (proxy_ajp_handler, proxy_ajp_canon): Drop
authorJoe Orton <jorton@apache.org>
Tue, 14 Sep 2004 17:29:36 +0000 (17:29 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 14 Sep 2004 17:29:36 +0000 (17:29 +0000)
ap_ prefix, declarations and make static.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105118 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ajp.c

index ccf617b4caf8b2ebdb577697f96ea1f256f41a03..e09f484c63621d2a18c9b604d706a3b42d132410 100644 (file)
 #include "ajp.h"
 
 module AP_MODULE_DECLARE_DATA proxy_ajp_module;
-
-int ap_proxy_ajp_canon(request_rec *r, char *url);
-int ap_proxy_ajp_handler(request_rec *r, proxy_worker *worker,
-                         proxy_server_conf *conf,
-                         char *url, const char *proxyname, 
-                         apr_port_t proxyport);
-
 /*
  * Canonicalise http-like URLs.
  *  scheme is the scheme for the URL
  *  url    is the URL starting with the first '/'
  *  def_port is the default port for this scheme.
  */
-int ap_proxy_ajp_canon(request_rec *r, char *url)
+static int proxy_ajp_canon(request_rec *r, char *url)
 {
     char *host, *path, *search, sport[7];
     const char *err;
@@ -350,10 +343,10 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
  * we return DECLINED so that we can try another proxy. (Or the direct
  * route.)
  */
-int ap_proxy_ajp_handler(request_rec *r, proxy_worker *worker,
-                         proxy_server_conf *conf,
-                         char *url, const char *proxyname, 
-                         apr_port_t proxyport)
+static int proxy_ajp_handler(request_rec *r, proxy_worker *worker,
+                             proxy_server_conf *conf,
+                             char *url, const char *proxyname, 
+                             apr_port_t proxyport)
 {
     int status;
     char server_portstr[32];
@@ -460,8 +453,8 @@ cleanup:
 
 static void ap_proxy_http_register_hook(apr_pool_t *p)
 {
-    proxy_hook_scheme_handler(ap_proxy_ajp_handler, NULL, NULL, APR_HOOK_FIRST);
-    proxy_hook_canon_handler(ap_proxy_ajp_canon, NULL, NULL, APR_HOOK_FIRST);
+    proxy_hook_scheme_handler(proxy_ajp_handler, NULL, NULL, APR_HOOK_FIRST);
+    proxy_hook_canon_handler(proxy_ajp_canon, NULL, NULL, APR_HOOK_FIRST);
 }
 
 module AP_MODULE_DECLARE_DATA proxy_ajp_module = {