From 33024724e6516154cfb70a2c59bfc119b8ecb7ec Mon Sep 17 00:00:00 2001 From: harti Date: Mon, 26 Jan 2004 12:24:07 +0000 Subject: Get rid of the deprecated *LEN constants and use the new *SIZ (that include the trailing \0) constants instead. --- sys/netgraph/netgraph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netgraph') diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h index e8ffdda..8981836 100644 --- a/sys/netgraph/netgraph.h +++ b/sys/netgraph/netgraph.h @@ -99,7 +99,7 @@ typedef int ng_rcvitem (node_p node, hook_p hook, item_p item); * Structure of a hook */ struct ng_hook { - char hk_name[NG_HOOKLEN+1]; /* what this node knows this link as */ + char hk_name[NG_HOOKSIZ]; /* what this node knows this link as */ void *hk_private; /* node dependant ID for this hook */ int hk_flags; /* info about this hook/link */ int hk_refs; /* dont actually free this till 0 */ @@ -322,7 +322,7 @@ struct ng_queue { }; struct ng_node { - char nd_name[NG_NODELEN+1]; /* optional globally unique name */ + char nd_name[NG_NODESIZ]; /* optional globally unique name */ struct ng_type *nd_type; /* the installed 'type' */ int nd_flags; /* see below for bit definitions */ int nd_refs; /* # of references to this node */ -- cgit v1.1