diff options
Diffstat (limited to 'src/blogc-runserver')
-rw-r--r-- | src/blogc-runserver/httpd-utils.c | 9 | ||||
-rw-r--r-- | src/blogc-runserver/httpd-utils.h | 14 | ||||
-rw-r--r-- | src/blogc-runserver/httpd.c | 9 | ||||
-rw-r--r-- | src/blogc-runserver/httpd.h | 14 | ||||
-rw-r--r-- | src/blogc-runserver/main.c | 9 | ||||
-rw-r--r-- | src/blogc-runserver/mime.c | 9 | ||||
-rw-r--r-- | src/blogc-runserver/mime.h | 14 |
7 files changed, 17 insertions, 61 deletions
diff --git a/src/blogc-runserver/httpd-utils.c b/src/blogc-runserver/httpd-utils.c index 9d374ae..aa0be27 100644 --- a/src/blogc-runserver/httpd-utils.c +++ b/src/blogc-runserver/httpd-utils.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stdbool.h> #include <string.h> diff --git a/src/blogc-runserver/httpd-utils.h b/src/blogc-runserver/httpd-utils.h index 06ad6e1..db638ad 100644 --- a/src/blogc-runserver/httpd-utils.h +++ b/src/blogc-runserver/httpd-utils.h @@ -1,13 +1,7 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _HTTPD_UTILS_H -#define _HTTPD_UTILS_H +#pragma once #define READLINE_BUFFER_SIZE 2048 @@ -15,5 +9,3 @@ char* br_readline(int socket); int br_hextoi(const char c); char* br_urldecode(const char *str); const char* br_get_extension(const char *filename); - -#endif /* _HTTPD_UTILS_H */ diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c index fe98288..a7293a2 100644 --- a/src/blogc-runserver/httpd.c +++ b/src/blogc-runserver/httpd.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <errno.h> #include <stdio.h> diff --git a/src/blogc-runserver/httpd.h b/src/blogc-runserver/httpd.h index b71a8d9..033a8e3 100644 --- a/src/blogc-runserver/httpd.h +++ b/src/blogc-runserver/httpd.h @@ -1,15 +1,7 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _HTTPD_H -#define _HTTPD_H +#pragma once int br_httpd_run(const char *host, const char *port, const char *docroot, size_t max_threads); - -#endif /* _HTTPD_H */ diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c index 1c5be29..ca402ec 100644 --- a/src/blogc-runserver/main.c +++ b/src/blogc-runserver/main.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #ifdef HAVE_CONFIG_H #include <config.h> diff --git a/src/blogc-runserver/mime.c b/src/blogc-runserver/mime.c index 636c496..192911e 100644 --- a/src/blogc-runserver/mime.c +++ b/src/blogc-runserver/mime.c @@ -1,10 +1,5 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause #include <stdlib.h> #include <string.h> diff --git a/src/blogc-runserver/mime.h b/src/blogc-runserver/mime.h index b9fb013..0d5fd03 100644 --- a/src/blogc-runserver/mime.h +++ b/src/blogc-runserver/mime.h @@ -1,15 +1,7 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br> - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ +// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br> +// SPDX-License-Identifier: BSD-3-Clause -#ifndef _MIME_H -#define _MIME_H +#pragma once const char* br_mime_guess_content_type(const char *filename); char* br_mime_guess_index(const char *path); - -#endif /* _MIME_H */ |