diff options
author | darix <darix@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2006-03-31 17:13:02 +0000 |
---|---|---|
committer | darix <darix@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2006-03-31 17:13:02 +0000 |
commit | b8e4ba5a6d924de6cb73c3e6ad3e2ebb2cdf0c79 (patch) | |
tree | 078c2a8b5005725260ddb24f4c4d31e3bf71789c /src/mod_staticfile.c | |
parent | 710115466a2b425c8a67a0870817680e9e00a367 (diff) | |
download | lighttpd-b8e4ba5a6d924de6cb73c3e6ad3e2ebb2cdf0c79.tar.gz |
- added PATCH_OPTION() macro that replaces all the local PATCH()
macros in the modules.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1070 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_staticfile.c')
-rw-r--r-- | src/mod_staticfile.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mod_staticfile.c b/src/mod_staticfile.c index 6fac65b1..6b110442 100644 --- a/src/mod_staticfile.c +++ b/src/mod_staticfile.c @@ -107,13 +107,11 @@ SETDEFAULTS_FUNC(mod_staticfile_set_defaults) { return HANDLER_GO_ON; } -#define PATCH(x) \ - p->conf.x = s->x; static int mod_staticfile_patch_connection(server *srv, connection *con, plugin_data *p) { size_t i, j; plugin_config *s = p->config_storage[0]; - PATCH(exclude_ext); + PATCH_OPTION(exclude_ext); /* skip the first, the global context */ for (i = 1; i < srv->config_context->used; i++) { @@ -128,14 +126,13 @@ static int mod_staticfile_patch_connection(server *srv, connection *con, plugin_ data_unset *du = dc->value->data[j]; if (buffer_is_equal_string(du->key, CONST_STR_LEN("static-file.exclude-extensions"))) { - PATCH(exclude_ext); + PATCH_OPTION(exclude_ext); } } } return 0; } -#undef PATCH static int http_response_parse_range(server *srv, connection *con, plugin_data *p) { int multipart = 0; |