summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/msort.c4
-rw-r--r--stdlib/qsort.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/stdlib/msort.c b/stdlib/msort.c
index 9e2c3e4ec5..4cd3e3f167 100644
--- a/stdlib/msort.c
+++ b/stdlib/msort.c
@@ -1,4 +1,4 @@
-/* msort -- an alternative to qsort, with an identical interface.
+/* An alternative to qsort, with an identical interface.
    This file is part of the GNU C Library.
    Copyright (C) 1992, 1995, 1996, 1997 Free Software Foundation, Inc.
    Written by Mike Haertel, September 1988.
@@ -109,7 +109,7 @@ qsort (b, n, s, cmp)
 	{
 	  /* Couldn't get space, so use the slower algorithm
 	     that doesn't need a temporary array.  */
-	  extern void _quicksort __P ((void *__base,
+	  extern void _quicksort __P ((void *const __base,
 				       size_t __nmemb, size_t __size,
 				       __compar_fn_t __compar));
 	  _quicksort (b, n, s, cmp);
diff --git a/stdlib/qsort.c b/stdlib/qsort.c
index 7e36ffea97..72d6b244df 100644
--- a/stdlib/qsort.c
+++ b/stdlib/qsort.c
@@ -20,6 +20,9 @@
 #include <stdlib.h>
 #include <string.h>
 
+extern void _quicksort __P ((void *const pbase, size_t total_elems,
+			     size_t size, __compar_fn_t cmp));
+
 /* Byte-wise swap two items of size SIZE. */
 #define SWAP(a, b, size)						      \
   do									      \