mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-14 17:16:26 +02:00
25 lines
872 B
Diff
25 lines
872 B
Diff
diff --git a/sa.c b/sa.c
|
|
index e2e654e..e1fd3bb 100644
|
|
--- a/sa.c
|
|
+++ b/sa.c
|
|
@@ -1506,7 +1506,8 @@ void print_user_list(void)
|
|
Remember to correct the number of elements to adjust... */
|
|
|
|
qsort (entry_array + 1, (size_t) num_users - 1,
|
|
- sizeof (struct hashtab_elem *), (int (*)()) compare_user_entry);
|
|
+ sizeof (struct hashtab_elem *),
|
|
+ (int (*)(const void *, const void *)) compare_user_entry);
|
|
|
|
/* Now we've got a sorted list of user entries. */
|
|
|
|
@@ -1686,7 +1687,8 @@ void print_command_list(void)
|
|
than the number of commands */
|
|
|
|
qsort (entry_array + 1, (size_t) num_commands - 1,
|
|
- sizeof (struct hashtab_entry *), (int (*)()) compare_sum_entry);
|
|
+ sizeof (struct hashtab_entry *),
|
|
+ (int (*)(const void *, const void *)) compare_sum_entry);
|
|
|
|
for (temp = 0; temp < num_commands; temp++)
|
|
{
|