summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-03 22:26:31 +0000
committerbde <bde@FreeBSD.org>1996-09-03 22:26:31 +0000
commite5c4f61fd1fde1a505ea11808471207ea65ff888 (patch)
tree6384656f702c293391da1d8ecae578f9104da142 /sys/kern/kern_sysctl.c
parent0094309d97547603230ebb2e58448d293a1a8bd0 (diff)
downloadFreeBSD-src-e5c4f61fd1fde1a505ea11808471207ea65ff888.zip
FreeBSD-src-e5c4f61fd1fde1a505ea11808471207ea65ff888.tar.gz
Fixed bogus casts (const on the wrong `*' in `**') in a qsort-comparision
function.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 869e2c1..29c8c32 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -37,7 +37,7 @@
* SUCH DAMAGE.
*
* @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
- * $Id: kern_sysctl.c,v 1.64 1996/06/10 16:23:30 nate Exp $
+ * $Id: kern_sysctl.c,v 1.65 1996/08/31 14:47:55 bde Exp $
*/
#include <sys/param.h>
@@ -73,10 +73,11 @@ extern struct linker_set sysctl_;
static int
sysctl_order_cmp(const void *a, const void *b)
{
- const struct sysctl_oid **pa, **pb;
+ struct sysctl_oid const * const *pa;
+ struct sysctl_oid const * const *pb;
- pa = (const struct sysctl_oid **)a;
- pb = (const struct sysctl_oid **)b;
+ pa = (struct sysctl_oid const * const *)a;
+ pb = (struct sysctl_oid const * const *)b;
if (*pa == NULL)
return (1);
if (*pb == NULL)
OpenPOWER on IntegriCloud