aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/url.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-11 14:48:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-11 14:48:09 +0100
commit42a8b2da0117555109c35a9b6e44e73d605a0bd6 (patch)
treedbbddec74528aca44f37ac41c586041862f05a7e /src/libserver/url.h
parent1a23c4377601c5c550d616c709e6e1ee56fd7f05 (diff)
downloadrspamd-42a8b2da0117555109c35a9b6e44e73d605a0bd6.tar.gz
rspamd-42a8b2da0117555109c35a9b6e44e73d605a0bd6.zip
[Minor] Cleanup various stuff
Diffstat (limited to 'src/libserver/url.h')
-rw-r--r--src/libserver/url.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/libserver/url.h b/src/libserver/url.h
index 2243534dc..e724d44ff 100644
--- a/src/libserver/url.h
+++ b/src/libserver/url.h
@@ -10,25 +10,25 @@ struct rspamd_task;
struct rspamd_mime_text_part;
enum rspamd_url_flags {
- RSPAMD_URL_FLAG_PHISHED = 1 << 0,
- RSPAMD_URL_FLAG_NUMERIC = 1 << 1,
- RSPAMD_URL_FLAG_OBSCURED = 1 << 2,
- RSPAMD_URL_FLAG_REDIRECTED = 1 << 3,
- RSPAMD_URL_FLAG_HTML_DISPLAYED = 1 << 4,
- RSPAMD_URL_FLAG_FROM_TEXT = 1 << 5,
- RSPAMD_URL_FLAG_SUBJECT = 1 << 6,
- RSPAMD_URL_FLAG_HOSTENCODED = 1 << 7,
- RSPAMD_URL_FLAG_SCHEMAENCODED = 1 << 8,
- RSPAMD_URL_FLAG_PATHENCODED = 1 << 9,
- RSPAMD_URL_FLAG_QUERYENCODED = 1 << 10,
- RSPAMD_URL_FLAG_MISSINGSLASHES = 1 << 11,
- RSPAMD_URL_FLAG_IDN = 1 << 12,
- RSPAMD_URL_FLAG_HAS_PORT = 1 << 13,
- RSPAMD_URL_FLAG_HAS_USER = 1 << 14,
- RSPAMD_URL_FLAG_SCHEMALESS = 1 << 15,
- RSPAMD_URL_FLAG_UNNORMALISED = 1 << 16,
- RSPAMD_URL_FLAG_ZW_SPACES = 1 << 17,
- RSPAMD_URL_FLAG_DISPLAY_URL = 1 << 18,
+ RSPAMD_URL_FLAG_PHISHED = 1u << 0u,
+ RSPAMD_URL_FLAG_NUMERIC = 1u << 1u,
+ RSPAMD_URL_FLAG_OBSCURED = 1u << 2u,
+ RSPAMD_URL_FLAG_REDIRECTED = 1u << 3u,
+ RSPAMD_URL_FLAG_HTML_DISPLAYED = 1u << 4u,
+ RSPAMD_URL_FLAG_FROM_TEXT = 1u << 5u,
+ RSPAMD_URL_FLAG_SUBJECT = 1u << 6u,
+ RSPAMD_URL_FLAG_HOSTENCODED = 1u << 7u,
+ RSPAMD_URL_FLAG_SCHEMAENCODED = 1u << 8u,
+ RSPAMD_URL_FLAG_PATHENCODED = 1u << 9u,
+ RSPAMD_URL_FLAG_QUERYENCODED = 1u << 10u,
+ RSPAMD_URL_FLAG_MISSINGSLASHES = 1u << 11u,
+ RSPAMD_URL_FLAG_IDN = 1u << 12u,
+ RSPAMD_URL_FLAG_HAS_PORT = 1u << 13u,
+ RSPAMD_URL_FLAG_HAS_USER = 1u << 14u,
+ RSPAMD_URL_FLAG_SCHEMALESS = 1u << 15u,
+ RSPAMD_URL_FLAG_UNNORMALISED = 1u << 16u,
+ RSPAMD_URL_FLAG_ZW_SPACES = 1u << 17u,
+ RSPAMD_URL_FLAG_DISPLAY_URL = 1u << 18u,
};
struct rspamd_url_tag {
@@ -81,19 +81,19 @@ enum uri_errno {
};
enum rspamd_url_protocol {
- PROTOCOL_FILE = 1u << 0,
- PROTOCOL_FTP = 1u << 1,
- PROTOCOL_HTTP = 1u << 2,
- PROTOCOL_HTTPS = 1u << 3,
- PROTOCOL_MAILTO = 1u << 4,
- PROTOCOL_TELEPHONE = 1u << 5,
- PROTOCOL_UNKNOWN = 1u << 31,
+ PROTOCOL_FILE = 1u << 0u,
+ PROTOCOL_FTP = 1u << 1u,
+ PROTOCOL_HTTP = 1u << 2u,
+ PROTOCOL_HTTPS = 1u << 3u,
+ PROTOCOL_MAILTO = 1u << 4u,
+ PROTOCOL_TELEPHONE = 1u << 5u,
+ PROTOCOL_UNKNOWN = 1u << 31u,
};
enum rspamd_url_parse_flags {
- RSPAMD_URL_PARSE_TEXT = 0,
- RSPAMD_URL_PARSE_HREF = (1u << 0),
- RSPAMD_URL_PARSE_CHECK = (1 << 1),
+ RSPAMD_URL_PARSE_TEXT = 0u,
+ RSPAMD_URL_PARSE_HREF = (1u << 0u),
+ RSPAMD_URL_PARSE_CHECK = (1u << 1u),
};
enum rspamd_url_find_type {