diff options
author | harti <harti@FreeBSD.org> | 2004-01-26 14:05:31 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2004-01-26 14:05:31 +0000 |
commit | 14cb10664f95adf9dd36c845745d3d5c87d3d636 (patch) | |
tree | a18015e7df92db337721d9972123a9203ac17d71 /sys/netgraph/ng_parse.c | |
parent | 98f2740a9c4a3cda7a5f4e77919cfe1284eed47c (diff) | |
download | FreeBSD-src-14cb10664f95adf9dd36c845745d3d5c87d3d636.zip FreeBSD-src-14cb10664f95adf9dd36c845745d3d5c87d3d636.tar.gz |
Get rid of the deprecated *LEN constants in favour of the new
*SIZ constants that include the trailing \0 byte.
Diffstat (limited to 'sys/netgraph/ng_parse.c')
-rw-r--r-- | sys/netgraph/ng_parse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index 58389e8..db77535 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -840,7 +840,7 @@ const struct ng_parse_type ng_parse_fixedstring_type = { }; const struct ng_parse_fixedstring_info ng_parse_nodebuf_info = { - NG_NODELEN + 1 + NG_NODESIZ }; const struct ng_parse_type ng_parse_nodebuf_type = { &ng_parse_fixedstring_type, @@ -848,7 +848,7 @@ const struct ng_parse_type ng_parse_nodebuf_type = { }; const struct ng_parse_fixedstring_info ng_parse_hookbuf_info = { - NG_HOOKLEN + 1 + NG_HOOKSIZ }; const struct ng_parse_type ng_parse_hookbuf_type = { &ng_parse_fixedstring_type, @@ -856,7 +856,7 @@ const struct ng_parse_type ng_parse_hookbuf_type = { }; const struct ng_parse_fixedstring_info ng_parse_pathbuf_info = { - NG_PATHLEN + 1 + NG_PATHSIZ }; const struct ng_parse_type ng_parse_pathbuf_type = { &ng_parse_fixedstring_type, @@ -864,7 +864,7 @@ const struct ng_parse_type ng_parse_pathbuf_type = { }; const struct ng_parse_fixedstring_info ng_parse_typebuf_info = { - NG_TYPELEN + 1 + NG_TYPESIZ }; const struct ng_parse_type ng_parse_typebuf_type = { &ng_parse_fixedstring_type, @@ -872,7 +872,7 @@ const struct ng_parse_type ng_parse_typebuf_type = { }; const struct ng_parse_fixedstring_info ng_parse_cmdbuf_info = { - NG_CMDSTRLEN + 1 + NG_CMDSTRSIZ }; const struct ng_parse_type ng_parse_cmdbuf_type = { &ng_parse_fixedstring_type, |