diff options
Diffstat (limited to 'src/libserver/http')
-rw-r--r-- | src/libserver/http/http_context.c | 4 | ||||
-rw-r--r-- | src/libserver/http/http_private.h | 8 | ||||
-rw-r--r-- | src/libserver/http/http_util.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/libserver/http/http_context.c b/src/libserver/http/http_context.c index f08e33baf..e9cfe187d 100644 --- a/src/libserver/http/http_context.c +++ b/src/libserver/http/http_context.c @@ -1,5 +1,5 @@ /* - * Copyright 2023 Vsevolod Stakhov + * Copyright 2024 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -361,7 +361,7 @@ rspamd_http_context_default(void) return default_ctx; } -gint32 +int32_t rspamd_keep_alive_key_hash(struct rspamd_keepalive_hash_key *k) { rspamd_cryptobox_fast_hash_state_t hst; diff --git a/src/libserver/http/http_private.h b/src/libserver/http/http_private.h index 096545e7e..bad0231a8 100644 --- a/src/libserver/http/http_private.h +++ b/src/libserver/http/http_private.h @@ -1,11 +1,11 @@ -/*- - * Copyright 2016 Vsevolod Stakhov +/* + * Copyright 2024 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -91,7 +91,7 @@ struct rspamd_keepalive_hash_key { GQueue conns; }; -gint32 rspamd_keep_alive_key_hash(struct rspamd_keepalive_hash_key *k); +int32_t rspamd_keep_alive_key_hash(struct rspamd_keepalive_hash_key *k); bool rspamd_keep_alive_key_equal(struct rspamd_keepalive_hash_key *k1, struct rspamd_keepalive_hash_key *k2); diff --git a/src/libserver/http/http_util.c b/src/libserver/http/http_util.c index d5c4a57f9..b43785be6 100644 --- a/src/libserver/http/http_util.c +++ b/src/libserver/http/http_util.c @@ -34,7 +34,7 @@ rspamd_http_parse_date(const gchar *header, gsize len) const gchar *p, *end; gint month; guint day, year, hour, min, sec; - guint64 time; + uint64_t time; enum { no = 0, rfc822, /* Tue, 10 Nov 2002 23:50:13 */ @@ -257,7 +257,7 @@ rspamd_http_parse_date(const gchar *header, gsize len) /* Gauss' formula for Gregorian days since March 1, 1 BC */ - time = (guint64) ( + time = (uint64_t) ( /* days in years including leap years since March 1, 1 BC */ 365 * year + year / 4 - year / 100 + year / 400 |