]> git.ipfire.org Git - pakfire.git/commitdiff
util: Make pakfire_string_partition private
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2021 14:49:44 +0000 (14:49 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Apr 2021 14:49:44 +0000 (14:49 +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 1640d00c77538acbc1072a0224535d6db91bfc19..862b62790c2b248cf05f581a91e7dc2f115c1a17 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <pakfire/types.h>
 
-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);
 
 char* pakfire_format_size(double size);
@@ -57,6 +57,7 @@ char* pakfire_generate_uuid();
 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);
 
 int pakfire_path_exists(const char* path);
 time_t pakfire_path_age(const char* path);
index 55ac4a3c4e6f1fd9140451d527a6c401e4707496..50552cc20e16dbe4131c358dd687944de865ca29 100644 (file)
@@ -413,7 +413,6 @@ global:
        pakfire_path_relpath;
        pakfire_read_file_into_buffer;
        pakfire_split_string;
-       pakfire_string_partition;
        pakfire_string_replace;
 
 local:
index 98e111d2a79b96298c66834ed2639f3b8824ac62..99ef5e3799aa66213f1773b29884485087c5442d 100644 (file)
@@ -77,8 +77,7 @@ char* pakfire_unquote_in_place(char* s) {
        return s;
 }
 
-PAKFIRE_EXPORT int pakfire_string_partition(
-               const char* s, const char* delim, char** s1, char** s2) {
+int pakfire_string_partition(const char* s, const char* delim, char** s1, char** s2) {
        char* p = strstr(s, delim);
 
        // Delim was not found