Skip to content

Commit 298d81a

Browse files
authored
ofono: Fix patch to work under GCC 14 (#368014)
2 parents ef6dc6c + 4468ece commit 298d81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/by-name/of/ofono/0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ index 924a45ec..f05055c3 100644
2626
- gchar **excludes = NULL;
2727
- GSList *list;
2828
- GDir *dir;
29-
+static handle_dir(const gchar *plugin_path, const gchar **patterns, const gchar **excludes) {
29+
+static void handle_dir(gchar *plugin_path, gchar **patterns, gchar **excludes) {
3030
const gchar *file;
3131
gchar *filename;
3232
- unsigned int i;
@@ -105,7 +105,7 @@ index 924a45ec..f05055c3 100644
105105
+ plugin_path_list = g_strsplit (plugin_path, G_SEARCHPATH_SEPARATOR_S, 0);
106106
+
107107
+ for (i = 0; plugin_path_list[i]; i++) {
108-
+ handle_dir(plugin_path_list, patterns, excludes);
108+
+ handle_dir(plugin_path_list[i], patterns, excludes);
109109
+ }
110110
+
111111
+ g_strfreev(plugin_path_list);

0 commit comments

Comments
 (0)