1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

smb: Don't cast the qsort comparison function pointer.

Inspired by FSP commit c3a6ca3ef0.
This time, the cast was a no-op though.
This commit is contained in:
Kalle Olavi Niemitalo 2007-03-05 23:07:20 +02:00 committed by Kalle Olavi Niemitalo
parent 9665f1b813
commit e08d040c4c

View File

@ -232,8 +232,7 @@ sort_and_display_entries(int dir, const unsigned char dircolor[])
table[size] = new_entry;
size++;
}
qsort(table, size, sizeof(*table),
(int (*)(const void *, const void *)) compare);
qsort(table, size, sizeof(*table), compare);
for (i = 0; i < size; i++) {
display_entry(table[i], dircolor);