Use sort instead of qsort thus avoiding compiler warning
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 25 Oct 2010 08:55:11 +0000 (10:55 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 25 Oct 2010 08:55:11 +0000 (10:55 +0200)
src/language/stats/npar.c

index 1db0a1b79be2c526aebaebbe81eb471c7376a0dc..a9eba5dd6edb7b729882c139fc2d55cedd412fc0 100644 (file)
@@ -31,6 +31,7 @@
 #include <data/procedure.h>
 #include <data/settings.h>
 #include <data/variable.h>
+#include <libpspp/array.h>
 #include <libpspp/assertion.h>
 #include <libpspp/cast.h>
 #include <libpspp/hmapx.h>
@@ -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 )
     {