Made array.h const correct, and dealt with the consequences.
[pspp-builds.git] / src / libpspp / array.c
index 1349f25380bc3943ea7defd1fb0b7ba42ac8efd5..a0639ccadc28de4a5c847d0b4ad4fdbda98a7292 100644 (file)
@@ -590,7 +590,7 @@ typedef struct
 
 void
 sort (void *array, size_t count, size_t size,
-      algo_compare_func *compare, void *aux)
+           algo_compare_func *compare, const void *aux)
 {
   char *const first = array;
   const size_t max_thresh = MAX_THRESH * size;
@@ -755,7 +755,7 @@ sort (void *array, size_t count, size_t size,
    passed to COMPARE as auxiliary data. */
 bool
 is_sorted (const void *array, size_t count, size_t size,
-           algo_compare_func *compare, void *aux) 
+           algo_compare_func *compare, const void *aux) 
 {
   const char *first = array;
   size_t idx;