]> git.ipfire.org Git - collecty.git/commitdiff
string: Make all functions static
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Oct 2025 14:23:41 +0000 (14:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Oct 2025 14:23:41 +0000 (14:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/string.h

index 3f5d982f36f75cd2aef121b2286cdc71201375b6..46f9b8b9878a64a19fa255e5ba4c734c2e70bb03 100644 (file)
@@ -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);