summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-05-24 20:41:40 +0000
committerjulian <julian@FreeBSD.org>2004-05-24 20:41:40 +0000
commit0c0aafcdd19d2b9360f8660a97983d86f08c96e2 (patch)
tree057aee35ab3d68f43b688299f06fb435a61bb4fa
parentf3d19bd9b6da151705497639d50cd33328694465 (diff)
downloadFreeBSD-src-0c0aafcdd19d2b9360f8660a97983d86f08c96e2.zip
FreeBSD-src-0c0aafcdd19d2b9360f8660a97983d86f08c96e2.tar.gz
Use NG_HOOKSIZ instead of the deprecated (NG_HOOKLEN + 1)
-rw-r--r--sys/netgraph/ng_hole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_hole.c b/sys/netgraph/ng_hole.c
index b1fc95d..923ed6d 100644
--- a/sys/netgraph/ng_hole.c
+++ b/sys/netgraph/ng_hole.c
@@ -162,7 +162,7 @@ ngh_rcvmsg(node_p node, item_p item, hook_p lasthook)
case NGM_HOLE_CLR_STATS:
case NGM_HOLE_GETCLR_STATS:
/* Sanity check. */
- if (msg->header.arglen != NG_HOOKLEN + 1) {
+ if (msg->header.arglen != NG_HOOKSIZ) {
error = EINVAL;
break;
}
OpenPOWER on IntegriCloud