summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2024-06-26 16:07:13 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2024-07-22 13:03:40 +0200
commitea262c7195f6ad0e9394cd8d9c6a45806f59dbbc (patch)
treea3abdcd143e243fd83540f14a2f86822c32a68bf /lib
parentlib/rules: fix a bug in subnet computations (diff)
downloadknot-resolver-ea262c7195f6ad0e9394cd8d9c6a45806f59dbbc.tar.xz
knot-resolver-ea262c7195f6ad0e9394cd8d9c6a45806f59dbbc.zip
lib/rules nit: missing `static` for a function
Diffstat (limited to 'lib')
-rw-r--r--lib/rules/api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rules/api.c b/lib/rules/api.c
index 2725e9a4..c4e25450 100644
--- a/lib/rules/api.c
+++ b/lib/rules/api.c
@@ -865,7 +865,7 @@ static int subnet_encode(const struct sockaddr *addr, int sub_len, uint8_t buf[3
}
// Is `a` subnet-prefix of `b`? (a byte format of subnet_encode())
-bool subnet_is_prefix(uint8_t a, uint8_t b)
+static bool subnet_is_prefix(uint8_t a, uint8_t b)
{
while (true) {
if (a >> 6 == 0)