1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-03-24 17:16:46 -04:00

Use glib qsort as qsort is not portable.

This commit is contained in:
QC 2015-07-05 09:37:35 +02:00
parent 9b83c6133f
commit dc356d81c4

View file

@ -733,7 +733,7 @@ static void menu_refilter ( MenuState *state, char **lines, menu_match_cb mmc, v
}
}
if ( sorting ) {
qsort_r ( state->line_map, j, sizeof ( int ), lev_sort, state->distance );
g_qsort_with_data ( state->line_map, j, sizeof ( int ), lev_sort, state->distance );
}
// Cleanup + bookkeeping.