diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lua-squarkdb.c | 2 | ||||
-rw-r--r-- | src/squark-filter.c | 2 |
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; |