From: John Darrington Date: Mon, 25 Oct 2010 08:55:11 +0000 (+0200) Subject: Use sort instead of qsort thus avoiding compiler warning X-Git-Tag: v0.7.7~184 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a91de115274ee41260b3d578962166b4c10fa6a;p=pspp-builds.git Use sort instead of qsort thus avoiding compiler warning --- diff --git a/src/language/stats/npar.c b/src/language/stats/npar.c index 1db0a1b7..a9eba5dd 100644 --- a/src/language/stats/npar.c +++ b/src/language/stats/npar.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -448,8 +449,8 @@ cmd_npar_tests (struct lexer *lexer, struct dataset *ds) } } - qsort (npar_specs.vv, npar_specs.n_vars, sizeof (*npar_specs.vv), - compare_var_ptrs_by_name); + sort (npar_specs.vv, npar_specs.n_vars, sizeof (*npar_specs.vv), + compare_var_ptrs_by_name, NULL); if ( cmd.statistics ) {