diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2003-11-15 15:26:35 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2003-11-15 15:26:35 +0000 |
commit | 89624a34909c1355b71214ff83df0fa94b04e34b (patch) | |
tree | 201c2a255c93bc25015b4e71f409755772c4c70e /share/examples/netgraph | |
parent | 53b2520d01fc8262caf7af67cdac9fbf60f872ce (diff) | |
download | src-89624a34909c1355b71214ff83df0fa94b04e34b.tar.gz src-89624a34909c1355b71214ff83df0fa94b04e34b.zip |
Replace all uses of the old netgraph constants NG_*LEN by the new
constants NG_*SIZ that include the trailing NUL byte. This change
is mostly mechanical except for the replacement of a couple of snprintf()
and sprintf() calls with strlcpy.
Notes
Notes:
svn path=/head/; revision=122758
Diffstat (limited to 'share/examples/netgraph')
-rw-r--r-- | share/examples/netgraph/ngctl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/netgraph/ngctl b/share/examples/netgraph/ngctl index 26ec74946dbf..80a7f22d13fd 100644 --- a/share/examples/netgraph/ngctl +++ b/share/examples/netgraph/ngctl @@ -150,8 +150,8 @@ # # /* Structure used for NGM_LISTHOOKS */ # struct linkinfo { -# char ourhook[NG_HOOKLEN + 1]; /* hook name */ -# char peerhook[NG_HOOKLEN + 1]; /* peer hook */ +# char ourhook[NG_HOOKSIZ]; /* hook name */ +# char peerhook[NG_HOOKSIZ]; /* peer hook */ # struct nodeinfo nodeinfo; # }; # |