From: Vladimír Čunát Date: Wed, 26 Jun 2024 14:07:13 +0000 (+0200) Subject: lib/rules nit: missing `static` for a function X-Git-Tag: v6.0.8~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea262c7195f6ad0e9394cd8d9c6a45806f59dbbc;p=thirdparty%2Fknot-resolver.git lib/rules nit: missing `static` for a function --- diff --git a/lib/rules/api.c b/lib/rules/api.c index 2725e9a48..c4e254502 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)