From: Michael Tremer Date: Sun, 5 Oct 2025 14:23:41 +0000 (+0000) Subject: string: Make all functions static X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0093290827a1225b23621e5ef9b4583a8d06955;p=telemetry.git string: Make all functions static Signed-off-by: Michael Tremer --- diff --git a/src/daemon/string.h b/src/daemon/string.h index 3f5d982..46f9b8b 100644 --- a/src/daemon/string.h +++ b/src/daemon/string.h @@ -91,7 +91,7 @@ static inline int __collecty_string_set(char* s, const size_t length, const char return -ENOBUFS; } -inline void collecty_string_lstrip(char* s) { +static inline void collecty_string_lstrip(char* s) { if (!s) return; @@ -104,7 +104,7 @@ inline void collecty_string_lstrip(char* s) { memmove(s, s + 1, l--); } -inline void collecty_string_rstrip(char* s) { +static inline void collecty_string_rstrip(char* s) { if (!s) return; @@ -115,7 +115,7 @@ inline void collecty_string_rstrip(char* s) { s[l-- - 1] = '\0'; } -inline void collecty_string_strip(char* s) { +static inline void collecty_string_strip(char* s) { // Strip everything on the left side collecty_string_lstrip(s);