Use NG_HOOKSIZ instead of the deprecated (NG_HOOKLEN + 1)

This commit is contained in:
julian 2004-05-24 20:41:40 +00:00
parent 5354e71f8f
commit fc959824c1

View File

@ -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;
}