From dc356d81c4869af46f20487579f89c9c853c9f04 Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 5 Jul 2015 09:37:35 +0200 Subject: [PATCH] Use glib qsort as qsort is not portable. --- source/rofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rofi.c b/source/rofi.c index cd6e826b..9c4df719 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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.