summaryrefslogtreecommitdiffstats
path: root/modules/echo
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-06-18 06:06:43 +0200
committerJeff Trawick <trawick@apache.org>2000-06-18 06:06:43 +0200
commitccdc88978f606ee0ff6d10583480641ec5a8d8f1 (patch)
tree05af15a67c168270df3cfc939fe95bc55927f1ae /modules/echo
parentMake unixd_config.user_name const char * instead of char * to avoid (diff)
downloadapache2-ccdc88978f606ee0ff6d10583480641ec5a8d8f1.tar.xz
apache2-ccdc88978f606ee0ff6d10583480641ec5a8d8f1.zip
Use the new command-handler initializer macros in a few more modules,
cleaning up the resulting warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/echo')
-rw-r--r--modules/echo/mod_echo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/echo/mod_echo.c b/modules/echo/mod_echo.c
index 752a0dd1e5..14582a6df4 100644
--- a/modules/echo/mod_echo.c
+++ b/modules/echo/mod_echo.c
@@ -78,7 +78,7 @@ static void *create_echo_server_config(ap_pool_t *p,server_rec *s)
return pConfig;
}
-static const char *echo_on(cmd_parms *cmd, void *dummy, char *arg)
+static const char *echo_on(cmd_parms *cmd, void *dummy, const char *arg)
{
EchoConfig *pConfig=ap_get_module_config(cmd->server->module_config,
&echo_module);
@@ -110,10 +110,11 @@ static int process_echo_connection(conn_rec *c)
return OK;
}
-static const command_rec echo_cmds[] = {
-{ "ProtocolEcho", echo_on, NULL, RSRC_CONF, RAW_ARGS,
- "Run an echo server on this host" },
-{ NULL }
+static const command_rec echo_cmds[] =
+{
+ AP_INIT_RAW_ARGS("ProtocolEcho", echo_on, NULL, RSRC_CONF,
+ "Run an echo server on this host"),
+ { NULL }
};
static void register_hooks(void)