]> git.ipfire.org Git - pakfire.git/commitdiff
util: Make pakfire_string_replace private
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2021 14:52:11 +0000 (14:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2021 14:52:11 +0000 (14:52 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/util.h
src/libpakfire/libpakfire.sym
src/libpakfire/util.c

index 862b62790c2b248cf05f581a91e7dc2f115c1a17..5c31650f16d4b8e3575bfe9d4123536d3c35b2fb 100644 (file)
@@ -28,9 +28,6 @@
 
 #include <pakfire/types.h>
 
-
-char* pakfire_string_replace(const char* s, const char* pattern, const char* repl);
-
 char* pakfire_format_size(double size);
 char* pakfire_format_date(time_t t);
 
@@ -58,6 +55,7 @@ int pakfire_string_startswith(const char* s, const char* prefix);
 int pakfire_string_endswith(const char* s, const char* suffix);
 char* pakfire_unquote_in_place(char* s);
 int pakfire_string_partition(const char* s, const char* delim, char** s1, char** s2);
+char* pakfire_string_replace(const char* s, const char* pattern, const char* repl);
 
 int pakfire_path_exists(const char* path);
 time_t pakfire_path_age(const char* path);
index 50552cc20e16dbe4131c358dd687944de865ca29..d9ba3a3e2b71086d8d4e1d0bb8f7e5bfb561a283 100644 (file)
@@ -413,7 +413,6 @@ global:
        pakfire_path_relpath;
        pakfire_read_file_into_buffer;
        pakfire_split_string;
-       pakfire_string_replace;
 
 local:
        *;
index 99ef5e3799aa66213f1773b29884485087c5442d..d149a18c7bcdb9b1bea5aa9d2e0310a22d3b0eea 100644 (file)
@@ -104,8 +104,7 @@ int pakfire_string_partition(const char* s, const char* delim, char** s1, char**
        return 0;
 }
 
-PAKFIRE_EXPORT char* pakfire_string_replace(
-               const char* s, const char* pattern, const char* repl) {
+char* pakfire_string_replace(const char* s, const char* pattern, const char* repl) {
        // Return NULL on no input or no pattern
        if (!s || !pattern) {
                errno = EINVAL;