From c3d19a8aab3149101d03a02dea467a713a31a22b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Aug 2019 08:12:58 -0400 Subject: [PATCH] DNAYaml: Make is_base64() internally linked This isn't used outside of this translation unit, so it can be made static. --- src/athena/DNAYaml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/athena/DNAYaml.cpp b/src/athena/DNAYaml.cpp index 799fac6..fa2be64 100644 --- a/src/athena/DNAYaml.cpp +++ b/src/athena/DNAYaml.cpp @@ -1008,7 +1008,7 @@ constexpr std::string_view base64_chars = "abcdefghijklmnopqrstuvwxyz" "0123456789+/"; -inline bool is_base64(unsigned char c) { return (isalnum(c) || (c == '+') || (c == '/')); } +static bool is_base64(unsigned char c) { return isalnum(c) || c == '+' || c == '/'; } std::string base64_encode(const atUint8* bytes_to_encode, size_t in_len) { std::string ret;