diff --git a/src/mod_accesslog.c b/src/mod_accesslog.c index 450912ef..d7c35dd1 100644 --- a/src/mod_accesslog.c +++ b/src/mod_accesslog.c @@ -735,7 +735,7 @@ REQUESTDONE_FUNC(log_access_write) { if (p->conf.append_tz_offset) { buffer_append_string_len(p->conf.ts_accesslog_str, tm.tm_gmtoff >= 0 ? "+" : "-", 1); - scd = abs(tm.tm_gmtoff); + scd = labs(tm.tm_gmtoff); hrs = scd / 3600; min = (scd % 3600) / 60; diff --git a/src/mod_secdownload.c b/src/mod_secdownload.c index 86ce5b01..ff752546 100644 --- a/src/mod_secdownload.c +++ b/src/mod_secdownload.c @@ -146,6 +146,7 @@ static size_t secdl_algorithm_mac_length(secdl_algorithm alg) { } static int secdl_verify_mac(server *srv, plugin_config *config, const char* protected_path, const char* mac, size_t maclen) { + UNUSED(srv); if (0 == maclen || secdl_algorithm_mac_length(config->algorithm) != maclen) return 0; switch (config->algorithm) {