Browse Source

minor: quiet some compiler warnings

personal/stbuehler/mod-csrf-old
Glenn Strauss 6 years ago
parent
commit
c463860451
  1. 2
      src/mod_accesslog.c
  2. 1
      src/mod_secdownload.c

2
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;

1
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) {

Loading…
Cancel
Save