From: Rich Bowen Date: Sat, 2 May 2026 20:37:42 +0000 (+0000) Subject: Bug 63961: Fix modguide examples - add AP_MODULE_FLAG_NONE to module struct, use... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a02bd9acc261962a54292362740d0c006c63bfef;p=thirdparty%2Fapache%2Fhttpd.git Bug 63961: Fix modguide examples - add AP_MODULE_FLAG_NONE to module struct, use { } sentinel for command_rec arrays (clang compatibility) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933730 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/developer/modguide.xml b/docs/manual/developer/modguide.xml index a65c2d23c3..c5bf54ec79 100644 --- a/docs/manual/developer/modguide.xml +++ b/docs/manual/developer/modguide.xml @@ -102,7 +102,8 @@ AP_DECLARE_MODULE(example) = create_svr_conf, /* Per-server configuration handler */ merge_svr_conf, /* Merge handler for per-server configurations */ directives, /* Any directives we may have for httpd */ - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; @@ -197,7 +198,8 @@ AP_DECLARE_MODULE(example) = NULL, NULL, NULL, - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; @@ -804,7 +806,8 @@ AP_DECLARE_MODULE(example) = NULL, /* Per-server configuration handler */ NULL, /* Merge handler for per-server configurations */ NULL, /* Any directives we may have for httpd */ - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; @@ -843,7 +846,8 @@ AP_DECLARE_MODULE(example) = NULL, /* Per-server configuration handler */ NULL, /* Merge handler for per-server configurations */ example_directives, /* Any directives we may have for httpd */ - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; @@ -863,7 +867,7 @@ static const command_rec example_directives[] = AP_INIT_TAKE1("exampleEnabled", example_set_enabled, NULL, RSRC_CONF, "Enable or disable mod_example"), AP_INIT_TAKE1("examplePath", example_set_path, NULL, RSRC_CONF, "The path to whatever"), AP_INIT_TAKE2("exampleAction", example_set_action, NULL, RSRC_CONF, "Special action value!"), - { NULL } + { } }; @@ -1012,7 +1016,7 @@ static const command_rec example_directives[] = AP_INIT_TAKE1("exampleEnabled", example_set_enabled, NULL, RSRC_CONF, "Enable or disable mod_example"), AP_INIT_TAKE1("examplePath", example_set_path, NULL, RSRC_CONF, "The path to whatever"), AP_INIT_TAKE2("exampleAction", example_set_action, NULL, RSRC_CONF, "Special action value!"), - { NULL } + { } }; /* ============================================================================== @@ -1054,7 +1058,8 @@ AP_DECLARE_MODULE(example) = NULL, /* Per-server configuration handler */ NULL, /* Merge handler for per-server configurations */ example_directives, /* Any directives we may have for httpd */ - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; @@ -1219,7 +1224,8 @@ AP_DECLARE_MODULE(example) = NULL, /* Per-server configuration handler */ NULL, /* Merge handler for per-server configurations */ directives, /* Any directives we may have for httpd */ - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; @@ -1400,7 +1406,7 @@ static const command_rec directives[] = AP_INIT_TAKE1("exampleEnabled", example_set_enabled, NULL, ACCESS_CONF, "Enable or disable mod_example"), AP_INIT_TAKE1("examplePath", example_set_path, NULL, ACCESS_CONF, "The path to whatever"), AP_INIT_TAKE2("exampleAction", example_set_action, NULL, ACCESS_CONF, "Special action value!"), - { NULL } + { } }; /*$1 @@ -1417,7 +1423,8 @@ AP_DECLARE_MODULE(example) = NULL, /* Per-server configuration handler */ NULL, /* Merge handler for per-server configurations */ directives, /* Any directives we may have for httpd */ - register_hooks /* Our hook registering function */ + register_hooks, /* Our hook registering function */ + AP_MODULE_FLAG_NONE /* Flags */ }; /*