From ee4dbb367f9b2bb435b20193b5ee361b5cc91cf9 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Sat, 12 Dec 2020 14:52:27 +0800 Subject: [PATCH] canonical header files Signed-off-by: Jianhui Zhao --- example/example.c | 1 - src/config.h.in | 4 ++-- src/connection.h | 4 ++-- src/file.h | 4 ++-- src/log.h | 4 ++-- src/mimetypes.h | 4 ++-- src/ssl.h | 4 ++-- src/uhttpd.h | 4 ++-- src/utils.h | 5 ++--- 9 files changed, 16 insertions(+), 18 deletions(-) diff --git a/example/example.c b/example/example.c index cd3273e..145c852 100644 --- a/example/example.c +++ b/example/example.c @@ -138,4 +138,3 @@ int main(int argc, char **argv) return 0; } - diff --git a/src/config.h.in b/src/config.h.in index f3c367f..45f016c 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UHTTPD_CONFIG_H -#define _UHTTPD_CONFIG_H +#ifndef LIBUHTTPD_CONFIG_H +#define LIBUHTTPD_CONFIG_H #define UHTTPD_VERSION_MAJOR @UHTTPD_VERSION_MAJOR@ #define UHTTPD_VERSION_MINOR @UHTTPD_VERSION_MINOR@ diff --git a/src/connection.h b/src/connection.h index ac379a3..2bedeb6 100644 --- a/src/connection.h +++ b/src/connection.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UH_CONNECTION_H -#define _UH_CONNECTION_H +#ifndef LIBUHTTPD_CONNECTION_H +#define LIBUHTTPD_CONNECTION_H #include #include diff --git a/src/file.h b/src/file.h index ddb47a2..6fa524f 100644 --- a/src/file.h +++ b/src/file.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UH_FILE_H -#define _UH_FILE_H +#ifndef LIBUHTTPD_FILE_H +#define LIBUHTTPD_FILE_H #include "connection.h" diff --git a/src/log.h b/src/log.h index 1601454..b6e491a 100644 --- a/src/log.h +++ b/src/log.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UH_LOG_H -#define _UH_LOG_H +#ifndef LIBUHTTPD_LOG_H +#define LIBUHTTPD_LOG_H #include #include diff --git a/src/mimetypes.h b/src/mimetypes.h index 7efbc4f..d1b1a8e 100644 --- a/src/mimetypes.h +++ b/src/mimetypes.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UH_MIMETYPES_H -#define _UH_MIMETYPES_H +#ifndef LIBUHTTPD_MIMETYPES_H +#define LIBUHTTPD_MIMETYPES_H struct mimetype { const char *extn; diff --git a/src/ssl.h b/src/ssl.h index 3c1792e..dce413b 100644 --- a/src/ssl.h +++ b/src/ssl.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UH_SSL_H -#define _UH_SSL_H +#ifndef LIBUHTTPD_SSL_H +#define LIBUHTTPD_SSL_H #include "config.h" #include "log.h" diff --git a/src/uhttpd.h b/src/uhttpd.h index 8de8884..e14dcfd 100644 --- a/src/uhttpd.h +++ b/src/uhttpd.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UHTTPD_H -#define _UHTTPD_H +#ifndef LIBUHTTPD_UHTTPD_H +#define LIBUHTTPD_UHTTPD_H #include diff --git a/src/utils.h b/src/utils.h index 9fc3630..635f46d 100644 --- a/src/utils.h +++ b/src/utils.h @@ -22,8 +22,8 @@ * SOFTWARE. */ -#ifndef _UH_UTILS_H -#define _UH_UTILS_H +#ifndef LIBUHTTPD_UTILS_H +#define LIBUHTTPD_UTILS_H #include #include @@ -40,4 +40,3 @@ #endif #endif -