]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/rules nit: missing `static` for a function
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 26 Jun 2024 14:07:13 +0000 (16:07 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 22 Jul 2024 11:03:40 +0000 (13:03 +0200)
lib/rules/api.c

index 2725e9a48d60644b314cdaa8a857d8096f5cd648..c4e254502a03b0cecc768d5cf8753237dafdbc63 100644 (file)
@@ -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)