Browse Source

[multiple] remove base.h include where not used

(substitute request.h if file only accesses request_st,
 and not connection or server structs)
master
Glenn Strauss 3 months ago
parent
commit
67c0b1498a
  1. 2
      src/http_chunk.c
  2. 2
      src/http_header.c
  3. 2
      src/mod_authn_file.c
  4. 2
      src/mod_cml_lua.c
  5. 2
      src/mod_fastcgi.c
  6. 2
      src/mod_flv_streaming.c
  7. 4
      src/mod_indexfile.c
  8. 3
      src/mod_setenv.c
  9. 2
      src/mod_simple_vhost.c
  10. 2
      src/mod_skeleton.c
  11. 2
      src/mod_ssi.c
  12. 2
      src/mod_staticfile.c
  13. 2
      src/mod_userdir.c

2
src/http_chunk.c

@ -8,11 +8,11 @@
#include "first.h"
#include "http_chunk.h"
#include "base.h"
#include "chunk.h"
#include "stat_cache.h"
#include "fdevent.h"
#include "log.h"
#include "request.h"
#include <sys/types.h>
#include <sys/stat.h>

2
src/http_header.c

@ -10,9 +10,9 @@
#include "sys-strings.h"
#include "http_header.h"
#include "base.h"
#include "array.h"
#include "buffer.h"
#include "request.h"
typedef struct keyvlenvalue {

2
src/mod_authn_file.c

@ -22,12 +22,12 @@
#include "mod_auth_api.h"
#include "sys-crypto-md.h" /* USE_LIB_CRYPTO */
#include "base.h"
#include "base64.h"
#include "ck.h"
#include "fdevent.h"
#include "log.h"
#include "plugin.h"
#include "request.h"
/*
* htdigest, htpasswd, plain auth backends

2
src/mod_cml_lua.c

@ -10,10 +10,10 @@
#include "mod_cml_funcs.h"
#include "mod_cml.h"
#include "base.h"
#include "chunk.h"
#include "log.h"
#include "http_header.h"
#include "request.h"
#include "response.h"
#include "stat_cache.h"

2
src/mod_fastcgi.c

@ -9,12 +9,12 @@ typedef gw_plugin_config plugin_config;
typedef gw_plugin_data plugin_data;
typedef gw_handler_ctx handler_ctx;
#include "base.h"
#include "buffer.h"
#include "fdevent.h"
#include "http_cgi.h"
#include "http_chunk.h"
#include "log.h"
#include "request.h"
#include "status_counter.h"
#include "compat/fastcgi.h"

2
src/mod_flv_streaming.c

@ -1,11 +1,11 @@
#include "first.h"
#include "base.h"
#include "array.h"
#include "buffer.h"
#include "log.h"
#include "http_chunk.h"
#include "http_header.h"
#include "request.h"
#include "stat_cache.h"
#include "plugin.h"

4
src/mod_indexfile.c

@ -1,12 +1,10 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "http_header.h"
#include "plugin.h"
#include "request.h"
#include "stat_cache.h"
#include <stdlib.h>

3
src/mod_setenv.c

@ -1,12 +1,11 @@
#include "first.h"
#include "base.h"
#include "array.h"
#include "buffer.h"
#include "log.h"
#include "http_header.h"
#include "plugin.h"
#include "request.h"
#include <stdlib.h>
#include <string.h>

2
src/mod_simple_vhost.c

@ -1,8 +1,8 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "request.h"
#include "stat_cache.h"
#include "plugin.h"

2
src/mod_skeleton.c

@ -5,10 +5,10 @@
#include "plugin.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "array.h"
#include "request.h"
/**
* this is a skeleton for a lighttpd plugin

2
src/mod_ssi.c

@ -1,6 +1,5 @@
#include "first.h"
#include "base.h"
#include "fdevent.h"
#include "log.h"
#include "buffer.h"
@ -8,6 +7,7 @@
#include "http_chunk.h"
#include "http_etag.h"
#include "http_header.h"
#include "request.h"
#include "stat_cache.h"
#include "plugin.h"

2
src/mod_staticfile.c

@ -1,11 +1,11 @@
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "plugin.h"
#include "request.h"
#include "response.h"
#include "stat_cache.h"

2
src/mod_userdir.c

@ -1,9 +1,9 @@
#include "first.h"
#include "base.h"
#include "array.h"
#include "buffer.h"
#include "log.h"
#include "request.h"
#include "response.h"
#include "stat_cache.h"

Loading…
Cancel
Save