mirror of
https://github.com/gryf/gentoo-patches.git
synced 2026-04-30 16:34:08 +02:00
Compare commits
4 Commits
79086cc920
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 9090faca5c | |||
| 00b49d01ea | |||
| aa457df477 | |||
| ef6ebef163 |
@@ -1,20 +0,0 @@
|
||||
--- mc-4.8.28_orig/src/filemanager/filemanager.c 2022-03-20 11:02:47.000000000 +0100
|
||||
+++ mc-4.8.28/src/filemanager/filemanager.c 2022-07-23 18:14:31.270726018 +0200
|
||||
@@ -199,7 +199,7 @@
|
||||
entries =
|
||||
g_list_prepend (entries,
|
||||
menu_entry_create (_("&Listing format..."), CK_SetupListingFormat));
|
||||
- entries = g_list_prepend (entries, menu_entry_create (_("S&ort order..."), CK_Sort));
|
||||
+ entries = g_list_prepend (entries, menu_entry_create (_("&Sort order..."), CK_Sort));
|
||||
entries = g_list_prepend (entries, menu_entry_create (_("&Filter..."), CK_Filter));
|
||||
#ifdef HAVE_CHARSET
|
||||
entries = g_list_prepend (entries, menu_entry_create (_("&Encoding..."), CK_SelectCodepage));
|
||||
@@ -212,7 +212,7 @@
|
||||
entries = g_list_prepend (entries, menu_entry_create (_("S&hell link..."), CK_ConnectFish));
|
||||
#endif
|
||||
#ifdef ENABLE_VFS_SFTP
|
||||
- entries = g_list_prepend (entries, menu_entry_create (_("&SFTP link..."), CK_ConnectSftp));
|
||||
+ entries = g_list_prepend (entries, menu_entry_create (_("S&FTP link..."), CK_ConnectSftp));
|
||||
#endif
|
||||
entries = g_list_prepend (entries, menu_entry_create (_("Paneli&ze"), CK_Panelize));
|
||||
entries = g_list_prepend (entries, menu_separator_create ());
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
--- id3lib-3.8.3_orig/include/id3/globals.h 2026-04-01 11:04:30.002608338 +0200
|
||||
+++ id3lib-3.8.3/include/id3/globals.h 2026-04-01 11:06:12.388848196 +0200
|
||||
@@ -82,14 +82,6 @@
|
||||
|
||||
#define ID3_C_VAR extern
|
||||
|
||||
-#ifndef __cplusplus
|
||||
-
|
||||
-typedef int bool;
|
||||
-# define false (0)
|
||||
-# define true (!false)
|
||||
-
|
||||
-#endif /* __cplusplus */
|
||||
-
|
||||
ID3_C_VAR const char * const ID3LIB_NAME;
|
||||
ID3_C_VAR const char * const ID3LIB_RELEASE;
|
||||
ID3_C_VAR const char * const ID3LIB_FULL_NAME;
|
||||
@@ -0,0 +1,160 @@
|
||||
diff --git a/src/common/hmap.c b/src/common/hmap.c
|
||||
index 9c5d657..90ca558 100644
|
||||
--- a/src/common/hmap.c
|
||||
+++ b/src/common/hmap.c
|
||||
@@ -363,7 +363,7 @@ hmap_iterator(HMap *map, HMapIterator *it)
|
||||
* function. But no other entry.
|
||||
*/
|
||||
void
|
||||
-hmap_foreach_value(HMap *map, void (*iterator)())
|
||||
+hmap_foreach_value(HMap *map, void (*iterator)(void*))
|
||||
{
|
||||
uint32_t c;
|
||||
|
||||
@@ -378,7 +378,7 @@ hmap_foreach_value(HMap *map, void (*iterator)())
|
||||
}
|
||||
|
||||
void
|
||||
-hmap_foreach_key(HMap *map, void (*iterator)())
|
||||
+hmap_foreach_key(HMap *map, void (*iterator)(void*))
|
||||
{
|
||||
uint32_t c;
|
||||
|
||||
diff --git a/src/common/hmap.h b/src/common/hmap.h
|
||||
index bf6684b..0ca0b56 100644
|
||||
--- a/src/common/hmap.h
|
||||
+++ b/src/common/hmap.h
|
||||
@@ -50,8 +50,8 @@ void *hmap_put(HMap *map, void *key, void *value);
|
||||
bool hmap_contains_key(HMap *map, const void *key);
|
||||
void *hmap_remove(HMap *map, const void *key);
|
||||
void hmap_iterator(HMap *map, HMapIterator *it);
|
||||
-void hmap_foreach_key(HMap *map, void (*iterator)());
|
||||
-void hmap_foreach_value(HMap *map, void (*iterator)());
|
||||
+void hmap_foreach_key(HMap *map, void (*iterator)(void*));
|
||||
+void hmap_foreach_value(HMap *map, void (*iterator)(void*));
|
||||
void hmap_clear(HMap *map);
|
||||
size_t hmap_size(HMap *map);
|
||||
void hmap_set_hash_fn(HMap *map, hash_fn_t hash);
|
||||
diff --git a/src/common/llist.c b/src/common/llist.c
|
||||
index 01a74de..aed1eda 100644
|
||||
--- a/src/common/llist.c
|
||||
+++ b/src/common/llist.c
|
||||
@@ -445,7 +445,7 @@ llist_is_empty(LList *list)
|
||||
}
|
||||
|
||||
void
|
||||
-llist_iterate(LList *list, void (*iterator_func)())
|
||||
+llist_iterate(LList *list, void (*iterator_func)(void*))
|
||||
{
|
||||
LNode *entry;
|
||||
for (entry = list->first; entry != NULL; entry = entry->next)
|
||||
diff --git a/src/common/llist.h b/src/common/llist.h
|
||||
index 11d13a3..c22cce9 100644
|
||||
--- a/src/common/llist.h
|
||||
+++ b/src/common/llist.h
|
||||
@@ -68,7 +68,7 @@ LList *llist_clone(LList *list);
|
||||
void **llist_to_array(LList *list);
|
||||
void **llist_to_null_terminated_array(LList *list);
|
||||
|
||||
-void llist_iterate(LList *list, void (*iterator_func)());
|
||||
+void llist_iterate(LList *list, void (*iterator_func)(void*));
|
||||
void llist_iterator(LList *list, LListIterator *it);
|
||||
|
||||
void llist_reverse(LList *list);
|
||||
diff --git a/src/common/tmap.c b/src/common/tmap.c
|
||||
index afa2203..d1b1c09 100644
|
||||
--- a/src/common/tmap.c
|
||||
+++ b/src/common/tmap.c
|
||||
@@ -507,7 +507,7 @@ predecessor(TMapNode *node)
|
||||
#endif
|
||||
|
||||
static void
|
||||
-tmap_foreach_nodes_key(TMapNode *node, void (*iterator)())
|
||||
+tmap_foreach_nodes_key(TMapNode *node, void (*iterator)(void*))
|
||||
{
|
||||
if (node->left != &nil)
|
||||
tmap_foreach_nodes_key(node->left, iterator);
|
||||
@@ -517,7 +517,7 @@ tmap_foreach_nodes_key(TMapNode *node, void (*iterator)())
|
||||
}
|
||||
|
||||
static void
|
||||
-tmap_foreach_nodes_value(TMapNode *node, void (*iterator)())
|
||||
+tmap_foreach_nodes_value(TMapNode *node, void (*iterator)(void*))
|
||||
{
|
||||
if (node->left != &nil)
|
||||
tmap_foreach_nodes_value(node->left, iterator);
|
||||
@@ -527,14 +527,14 @@ tmap_foreach_nodes_value(TMapNode *node, void (*iterator)())
|
||||
}
|
||||
|
||||
void
|
||||
-tmap_foreach_key(TMap *map, void (*iterator)())
|
||||
+tmap_foreach_key(TMap *map, void (*iterator)(void*))
|
||||
{
|
||||
if (map->root != &nil)
|
||||
tmap_foreach_nodes_key(map->root, iterator);
|
||||
}
|
||||
|
||||
void
|
||||
-tmap_foreach_value(TMap *map, void (*iterator)())
|
||||
+tmap_foreach_value(TMap *map, void (*iterator)(void*))
|
||||
{
|
||||
if (map->root != &nil)
|
||||
tmap_foreach_nodes_value(map->root, iterator);
|
||||
diff --git a/src/common/tmap.h b/src/common/tmap.h
|
||||
index b1368f8..7e073e7 100644
|
||||
--- a/src/common/tmap.h
|
||||
+++ b/src/common/tmap.h
|
||||
@@ -51,8 +51,8 @@ void *tmap_remove(TMap *map, const void *key);
|
||||
void tmap_iterator(TMap *map, TMapIterator *it); /* value iterator */
|
||||
bool tmap_iterator_partial(TMap *map, TMapIterator *it, const void *match, comparison_fn_t comparator);
|
||||
void tmap_clear(TMap *map);
|
||||
-void tmap_foreach_key(TMap *map, void (*iterator)());
|
||||
-void tmap_foreach_value(TMap *map, void (*iterator)());
|
||||
+void tmap_foreach_key(TMap *map, void (*iterator)(void*));
|
||||
+void tmap_foreach_value(TMap *map, void (*iterator)(void*));
|
||||
|
||||
#ifdef ENABLE_TMAP_TESTING
|
||||
#include <stdio.h>
|
||||
diff --git a/src/list.c b/src/list.c
|
||||
index d5bac13..0012376 100644
|
||||
--- a/src/list.c
|
||||
+++ b/src/list.c
|
||||
@@ -166,14 +166,14 @@ import_command(char **args)
|
||||
hmap_free(map_files);
|
||||
if (ferror(fh)) {
|
||||
warn(_("%s: cannot read from file: %s\n"), quotearg(args[1]), errstr);
|
||||
- llist_iterate(new_files, free_file_spec);
|
||||
+ llist_iterate(new_files, (void(*)(void *))free_file_spec);
|
||||
llist_free(new_files);
|
||||
fclose(fh);
|
||||
return;
|
||||
}
|
||||
fclose(fh);
|
||||
|
||||
- llist_iterate(work_files, free_file_spec);
|
||||
+ llist_iterate(work_files, (void(*)(void *))free_file_spec);
|
||||
llist_free(work_files);
|
||||
work_files = new_files;
|
||||
}
|
||||
@@ -370,7 +370,7 @@ list_files(char **args)
|
||||
free_plan(plan);
|
||||
plan = NULL;
|
||||
}
|
||||
- llist_iterate(work_files, free_file_spec);
|
||||
+ llist_iterate(work_files, (void(*)(void *))free_file_spec);
|
||||
llist_clear(work_files);
|
||||
|
||||
if (!process_ls_output(firstdir, work_files, ls_fd)) {
|
||||
diff --git a/src/qcmd.c b/src/qcmd.c
|
||||
index 285fe8e..6bb3013 100644
|
||||
--- a/src/qcmd.c
|
||||
+++ b/src/qcmd.c
|
||||
@@ -263,7 +263,7 @@ main(int argc, char **argv)
|
||||
free_plan(plan);
|
||||
|
||||
/*dump_spec_list(work_files);*/
|
||||
- llist_iterate(work_files, free_file_spec);
|
||||
+ llist_iterate(work_files, (void(*)(void *))free_file_spec);
|
||||
llist_free(work_files);
|
||||
free(all_options);
|
||||
free(editor_program);
|
||||
Reference in New Issue
Block a user