summaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-04 20:31:24 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-04 20:31:24 +0400
commit3f96e6a7a317e70b85b32de4aa06681c11d79006 (patch)
tree70343e3fb1a43d29d9c4f454fa47b2dcad6249ad /src/url.c
parent6b86782ce21caad081d41f54ef10233a8e757189 (diff)
downloadrspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.tar.gz
rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.zip
Fix signness in arithmetic operations.
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/url.c b/src/url.c
index 3ab8359a9..2d61e107d 100644
--- a/src/url.c
+++ b/src/url.c
@@ -216,7 +216,7 @@ check_uri_file (gchar *name)
static gint
url_init (void)
{
- gint i;
+ guint i;
if (url_scanner == NULL) {
url_scanner = g_malloc (sizeof (struct url_match_scanner));
url_scanner->matchers = matchers;
@@ -918,7 +918,7 @@ url_file_end (const gchar *begin, const gchar *end, const gchar *pos, url_match_
{
const gchar *p;
gchar stop;
- gint i;
+ guint i;
p = pos + strlen (match->pattern);
if (*p == '/') {
@@ -964,9 +964,9 @@ url_web_end (const gchar *begin, const gchar *end, const gchar *pos, url_match_t
{
const gchar *p, *c;
gchar open_brace = '\0', close_brace = '\0';
- gint i, brace_stack = 0;
+ gint brace_stack = 0;
gboolean passwd = FALSE;
- guint port;
+ guint port, i;
p = pos + strlen (match->pattern);
for (i = 0; i < G_N_ELEMENTS (url_braces) / 2; i += 2) {