diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-06-26 16:07:13 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-07-22 13:03:40 +0200 |
commit | ea262c7195f6ad0e9394cd8d9c6a45806f59dbbc (patch) | |
tree | a3abdcd143e243fd83540f14a2f86822c32a68bf /lib | |
parent | lib/rules: fix a bug in subnet computations (diff) | |
download | knot-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.c | 2 |
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) |