fixed includes order

This commit is contained in:
Devaev Maxim
2019-06-28 05:00:49 +03:00
parent 32013a6360
commit da3a3adc65
14 changed files with 28 additions and 18 deletions

View File

@@ -20,12 +20,13 @@
*****************************************************************************/
#include "base64.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../tools.h"
#include "base64.h"
static const char ENCODING_TABLE[] = {

View File

@@ -20,6 +20,8 @@
*****************************************************************************/
#include "blank.h"
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
@@ -32,8 +34,6 @@
#include "data/blank_jpeg.h"
#include "blank.h"
struct _jpeg_error_manager_t {
struct jpeg_error_mgr mgr; // Default manager

View File

@@ -20,14 +20,14 @@
*****************************************************************************/
#include "mime.h"
#include <string.h>
#include <event2/util.h>
#include "../tools.h"
#include "mime.h"
static const struct {
const char *ext;

View File

@@ -20,6 +20,8 @@
*****************************************************************************/
#include "path.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -27,8 +29,6 @@
#include "../tools.h"
#include "path.h"
char *simplify_request_path(const char *str) {
// Based on Lighttpd sources:

View File

@@ -20,6 +20,8 @@
*****************************************************************************/
#include "server.h"
#include <stdlib.h>
#include <stdbool.h>
#include <stdatomic.h>
@@ -56,7 +58,6 @@
#include "base64.h"
#include "mime.h"
#include "static.h"
#include "server.h"
#include "data/index_html.h"

View File

@@ -20,6 +20,8 @@
*****************************************************************************/
#include "static.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -32,7 +34,6 @@
#include "../logging.h"
#include "path.h"
#include "static.h"
char *find_static_file_path(const char *root_path, const char *request_path) {