You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@locus.apache.org on 2000/08/17 16:54:28 UTC
cvs commit: apache-2.0/src/modules/standard mod_echo.c
rbb 00/08/17 07:54:28
Modified: src/modules/standard mod_echo.c
Log:
Mod_echo was using raw args instead of a flag to enable and disable
itself. I believe this is what was causing the module to not be able to
be enabled and disabled on a per-server basis. This patch makes it use
a flag
Revision Changes Path
1.25 +4 -4 apache-2.0/src/modules/standard/mod_echo.c
Index: mod_echo.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_echo.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- mod_echo.c 2000/08/02 05:27:15 1.24
+++ mod_echo.c 2000/08/17 14:54:28 1.25
@@ -78,11 +78,11 @@
return pConfig;
}
-static const char *echo_on(cmd_parms *cmd, void *dummy, const char *arg)
+static const char *echo_on(cmd_parms *cmd, void *dummy, int arg)
{
EchoConfig *pConfig=ap_get_module_config(cmd->server->module_config,
&echo_module);
- pConfig->bEnabled=1;
+ pConfig->bEnabled=arg;
return NULL;
}
@@ -112,8 +112,8 @@
static const command_rec echo_cmds[] =
{
- AP_INIT_RAW_ARGS("ProtocolEcho", echo_on, NULL, RSRC_CONF,
- "Run an echo server on this host"),
+ AP_INIT_FLAG("ProtocolEcho", echo_on, NULL, RSRC_CONF,
+ "Run an echo server on this host"),
{ NULL }
};