Author: jfrederic.clere(a)jboss.com
Date: 2008-06-05 07:51:16 -0400 (Thu, 05 Jun 2008)
New Revision: 1658
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Fix the warnings on HP-UX.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-05 11:42:10 UTC
(rev 1657)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-06-05 11:51:16 UTC
(rev 1658)
@@ -162,7 +162,7 @@
/*
* Add a node to the worker conf
*/
-static int add_workers_node(nodeinfo_t *node, proxy_server_conf *conf, apr_pool_t *pool,
server_rec *server)
+static void add_workers_node(nodeinfo_t *node, proxy_server_conf *conf, apr_pool_t *pool,
server_rec *server)
{
char *name = apr_pstrcat(pool, "cluster://", node->mess.balancer,
NULL);
proxy_balancer *balancer = ap_proxy_get_balancer(pool, conf, name);
@@ -1020,11 +1020,9 @@
static int proxy_cluster_canon(request_rec *r, char *url)
{
if (strncasecmp(url, "balancer:", 9) == 0) {
- OK; /* XXX: need more */
+ return OK; /* XXX: need more */
}
- else {
- return DECLINED;
- }
+ return DECLINED;
}
/* Find the worker that has the 'route' defined
@@ -1447,10 +1445,12 @@
ap_register_provider(p, "proxy_cluster" , "balancer",
"0", &balancerhandler);
}
+/* XXX: not needed
static void *create_proxy_cluster_dir_config(apr_pool_t *p, char *dir)
{
return NULL;
}
+ */
static void *create_proxy_cluster_server_config(apr_pool_t *p, server_rec *s)
{
Show replies by date