mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Fixed bogus casts (const on the wrong *' in
**') in a qsort-comparision
function.
This commit is contained in:
parent
f58609f0c6
commit
3f6a052a89
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18025
@ -37,7 +37,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
|
* @(#)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>
|
#include <sys/param.h>
|
||||||
@ -73,10 +73,11 @@ extern struct linker_set sysctl_;
|
|||||||
static int
|
static int
|
||||||
sysctl_order_cmp(const void *a, const void *b)
|
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;
|
pa = (struct sysctl_oid const * const *)a;
|
||||||
pb = (const struct sysctl_oid **)b;
|
pb = (struct sysctl_oid const * const *)b;
|
||||||
if (*pa == NULL)
|
if (*pa == NULL)
|
||||||
return (1);
|
return (1);
|
||||||
if (*pb == NULL)
|
if (*pb == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user