summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-10-07 01:16:31 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-10-07 01:16:31 +0300
commit16ee995cfeff2af51b5f00b15fe1500cc4deeb99 (patch)
treed6ec02ad1d8928e1874da69cda3c8abcfa3ee801
parent149184c48a92b7da35691b4c977b810cdcf528dd (diff)
downloadsquark-0.4.tar.bz2
squark-0.4.tar.xz
lua, filter: fix 64-bit issuesv0.4
-rw-r--r--src/lua-squarkdb.c2
-rw-r--r--src/squark-filter.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lua-squarkdb.c b/src/lua-squarkdb.c
index 5a30848..cc840c6 100644
--- a/src/lua-squarkdb.c
+++ b/src/lua-squarkdb.c
@@ -199,7 +199,7 @@ static int Lsqdb_create_index(lua_State *L)
static int Lsqdb_assign_index(lua_State *L)
{
struct sqdb *db;
- size_t size;
+ uint32_t size;
lua_Integer idx;
struct sqdb_index_entry *ptr;
diff --git a/src/squark-filter.c b/src/squark-filter.c
index 09693c9..407c1b5 100644
--- a/src/squark-filter.c
+++ b/src/squark-filter.c
@@ -248,7 +248,7 @@ static int url_classify(struct url_info *url, struct sqdb *db)
indx[p].parent != SQDB_PARENT_ROOT ||
blob_cmp(tld, sqdb_get_string_literal(db, indx[p].component)) != 0) {
/* top level domain did not match */
- i = -1;
+ i = SQDB_PARENT_ROOT;
goto parent_dns_match;
}
tld = BLOB_NULL;