From 5238505cfe84db95bd087b9e21b75aea4fb3fd50 Mon Sep 17 00:00:00 2001 From: scw Date: Wed, 11 Dec 2002 13:12:48 +0000 Subject: [PATCH] KERN_MAXID needs to be one more than the last sysctl. Spotted by simonb. --- sys/sys/sysctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 383ec99c7b5f..d4a26034c4a4 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysctl.h,v 1.82 2002/12/11 12:59:32 scw Exp $ */ +/* $NetBSD: sysctl.h,v 1.83 2002/12/11 13:12:48 scw Exp $ */ /* * Copyright (c) 1989, 1993 @@ -186,7 +186,7 @@ struct ctlname { #endif #define KERN_LABELSECTOR 62 /* int: disklabel sector */ #define KERN_LABELOFFSET 63 /* int: offset of label within sector */ -#define KERN_MAXID 63 /* number of valid kern ids */ +#define KERN_MAXID 64 /* number of valid kern ids */ #define CTL_KERN_NAMES { \ { 0, 0 }, \