From 3f6a052a89d5bba9088dd6f21378eb1d74108d49 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 3 Sep 1996 22:26:31 +0000 Subject: [PATCH] Fixed bogus casts (const on the wrong `*' in `**') in a qsort-comparision function. --- sys/kern/kern_sysctl.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 869e2c12184..29c8c325450 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 @@ -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)