diff --git a/cmake/SgMHD.cmake b/cmake/SgMHD.cmake index 1876e09..795e4b5 100644 --- a/cmake/SgMHD.cmake +++ b/cmake/SgMHD.cmake @@ -20,7 +20,7 @@ # # Cross-platform library which helps to develop web servers or frameworks. # -# Copyright (C) 2016-2021 Silvio Clecio +# Copyright (C) 2016-2023 Silvio Clecio # # Sagui library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -43,16 +43,11 @@ endif() set(__SG_MHD_INCLUDED ON) set(MHD_NAME "libmicrohttpd") -set(MHD_VER "0.9.74") +set(MHD_VER "0.9.76") set(MHD_FULL_NAME "${MHD_NAME}-${MHD_VER}") -set(MHD_URL - "https://github.com/Karlson2k/libmicrohttpd/releases/download/v${MHD_VER}/${MHD_FULL_NAME}.tar.gz" -) -set(MHD_URL_MIRROR - "https://ftp.gnu.org/gnu/libmicrohttpd/${MHD_FULL_NAME}.tar.gz" -) -set(MHD_SHA256 - "42035d0261373324bfb434018f4ab892514b10253d1af232e41b4cc2c11e650b") +set(MHD_URL "https://ftp.gnu.org/gnu/libmicrohttpd/${MHD_FULL_NAME}.tar.gz") +set(MHD_URL_MIRROR "https://ftp.gnu.org/gnu/libmicrohttpd/${MHD_FULL_NAME}.tar.gz") +set(MHD_SHA256 "f0b1547b5a42a6c0f724e8e1c1cb5ce9c4c35fb495e7d780b9930d35011ceb4c") set(_libdir ${CMAKE_BINARY_DIR}/${MHD_FULL_NAME}/lib) if(${CMAKE_VERSION} VERSION_LESS "3.7") unset(MHD_URL_MIRROR) diff --git a/cmake/SgPCRE2.cmake b/cmake/SgPCRE2.cmake index d136b27..1113c82 100644 --- a/cmake/SgPCRE2.cmake +++ b/cmake/SgPCRE2.cmake @@ -21,7 +21,7 @@ # # Cross-platform library which helps to develop web servers or frameworks. # -# Copyright (C) 2016-2021 Silvio Clecio +# Copyright (C) 2016-2023 Silvio Clecio # # Sagui library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -46,16 +46,15 @@ set(__SG_PCRE2_INCLUDED ON) option(PCRE2_JIT_SUPPORT "Enable JIT support" ON) set(PCRE2_NAME "pcre2") -set(PCRE2_VER "10.39") +set(PCRE2_VER "10.42") set(PCRE2_FULL_NAME "${PCRE2_NAME}-${PCRE2_VER}") set(PCRE2_URL - "https://github.com/PhilipHazel/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" + "https://github.com/PCRE2Project/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" ) set(PCRE2_URL_MIRROR - "https://github.com/PhilipHazel/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" + "https://github.com/PCRE2Project/pcre2/releases/download/${PCRE2_FULL_NAME}/${PCRE2_FULL_NAME}.tar.gz" ) -set(PCRE2_SHA256 - "0781bd2536ef5279b1943471fdcdbd9961a2845e1d2c9ad849b9bd98ba1a9bd4") +set(PCRE2_SHA256 "c33b418e3b936ee3153de2c61cc638e7e4fe3156022a5c77d0711bcbb9d64f1f") if(${CMAKE_VERSION} VERSION_LESS "3.7") unset(PCRE2_URL_MIRROR) endif() diff --git a/include/sagui.h b/include/sagui.h index 872e24f..85b4518 100644 --- a/include/sagui.h +++ b/include/sagui.h @@ -7,7 +7,7 @@ * * Cross-platform library which helps to develop web servers or frameworks. * - * Copyright (C) 2016-2021 Silvio Clecio + * Copyright (C) 2016-2023 Silvio Clecio * * Sagui library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -74,7 +74,7 @@ extern "C" { #define SG_VERSION_MAJOR 3 #define SG_VERSION_MINOR 4 -#define SG_VERSION_PATCH 0 +#define SG_VERSION_PATCH 1 #define SG_VERSION_HEX \ ((SG_VERSION_MAJOR << 16) | (SG_VERSION_MINOR << 8) | (SG_VERSION_PATCH)) @@ -1755,7 +1755,7 @@ struct sg_entrypoints; * Callback signature used by #sg_entrypoints_iter() to iterate entry-point * items. * \param[out] cls User-defined closure. - * \param[out] pair Current iterated entry-point. + * \param[out] entrypoint Current iterated entry-point. * \retval 0 Success. * \retval E User-defined error to stop the items iteration. */ diff --git a/src/sg_utils.c b/src/sg_utils.c index 8050013..605cccf 100644 --- a/src/sg_utils.c +++ b/src/sg_utils.c @@ -7,7 +7,7 @@ * * Cross-platform library which helps to develop web servers or frameworks. * - * Copyright (C) 2016-2021 Silvio Clecio + * Copyright (C) 2016-2023 Silvio Clecio * * Sagui library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -367,7 +367,7 @@ char *sg_extract_entrypoint(const char *path) { /* File/directory. */ -char *sg_tmpdir() { +char *sg_tmpdir(void) { #ifdef _WIN32 wchar_t path[MAX_PATH + 1]; /* max 261 */ size_t len = GetTempPathW(MAX_PATH + 1, path);