summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-01-26 12:24:07 +0000
committerharti <harti@FreeBSD.org>2004-01-26 12:24:07 +0000
commit33024724e6516154cfb70a2c59bfc119b8ecb7ec (patch)
tree52fbb1b421acfe230691252510faeca3d0b1bd25 /sys/netgraph
parent6d77c2d2d2d5058e32f30816e4d89c75c1e27d7c (diff)
downloadFreeBSD-src-33024724e6516154cfb70a2c59bfc119b8ecb7ec.zip
FreeBSD-src-33024724e6516154cfb70a2c59bfc119b8ecb7ec.tar.gz
Get rid of the deprecated *LEN constants and use the new *SIZ
(that include the trailing \0) constants instead.
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/netgraph.h4
1 files changed, 2 insertions, 2 deletions
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 */
OpenPOWER on IntegriCloud