1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Fixed bogus casts (const on the wrong *' in **') in a qsort-comparision

function.
This commit is contained in:
Bruce Evans 1996-09-03 22:26:31 +00:00
parent f58609f0c6
commit 3f6a052a89
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18025

View File

@ -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)