diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-18 18:56:33 +0000 |
commit | 14c13854d3cae9d93c3d148be30fb72f1eaffe55 (patch) | |
tree | 7b1a3e41b75490fac4d45722c90a1847543c6796 /src/ragel | |
parent | 6b2b4167187fee09365271cca182866ecb029af3 (diff) | |
download | rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.tar.gz rspamd-14c13854d3cae9d93c3d148be30fb72f1eaffe55.zip |
[Rework] Further types conversion (no functional changes)
Diffstat (limited to 'src/ragel')
-rw-r--r-- | src/ragel/rfc2047_parser.rl | 8 | ||||
-rw-r--r-- | src/ragel/smtp_date_parser.rl | 2 | ||||
-rw-r--r-- | src/ragel/smtp_ip_parser.rl | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ragel/rfc2047_parser.rl b/src/ragel/rfc2047_parser.rl index 88e107be1..09ba879f4 100644 --- a/src/ragel/rfc2047_parser.rl +++ b/src/ragel/rfc2047_parser.rl @@ -58,15 +58,15 @@ %% write data; gboolean -rspamd_rfc2047_parser (const gchar *in, gsize len, gint *pencoding, - const gchar **charset, gsize *charset_len, - const gchar **encoded, gsize *encoded_len) +rspamd_rfc2047_parser (const char *in, gsize len, int *pencoding, + const char **charset, gsize *charset_len, + const char **encoded, gsize *encoded_len) { const char *p = in, *pe = in + len, *encoded_start = NULL, *encoded_end = NULL, *charset_start = NULL, *charset_end = NULL, *eof = in + len; - gint encoding = RSPAMD_RFC2047_QP, cs = 0; + int encoding = RSPAMD_RFC2047_QP, cs = 0; %% write init; %% write exec; diff --git a/src/ragel/smtp_date_parser.rl b/src/ragel/smtp_date_parser.rl index 1521ed317..97969a786 100644 --- a/src/ragel/smtp_date_parser.rl +++ b/src/ragel/smtp_date_parser.rl @@ -19,7 +19,7 @@ rspamd_parse_smtp_date (const unsigned char *data, size_t len, GError **err) const unsigned char *p = data, *pe = data + len, *eof = data + len, *tmp = data; struct tm tm; glong tz = 0; - gint cs = 0, *stack = NULL;; + int cs = 0, *stack = NULL;; gsize top = 0; memset (&tm, 0, sizeof (tm)); diff --git a/src/ragel/smtp_ip_parser.rl b/src/ragel/smtp_ip_parser.rl index 617f731f2..8506328b7 100644 --- a/src/ragel/smtp_ip_parser.rl +++ b/src/ragel/smtp_ip_parser.rl @@ -42,7 +42,7 @@ rspamd_parse_smtp_ip (const char *data, size_t len, rspamd_mempool_t *pool) const char *p = data, *pe = data + len, *eof = data + len; const char *ip_start = NULL, *ip_end = NULL; gboolean in_v6 = FALSE; - gint cs = 0; + int cs = 0; %% write init; %% write exec; |