summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-11-15 15:26:35 +0000
committerharti <harti@FreeBSD.org>2003-11-15 15:26:35 +0000
commit91fb8e3f9c1a952bb775f1bb31ea6559b00513de (patch)
tree201c2a255c93bc25015b4e71f409755772c4c70e /share/examples
parent893ed3a2447f87376575889b23f244a2d8f65be6 (diff)
downloadFreeBSD-src-91fb8e3f9c1a952bb775f1bb31ea6559b00513de.zip
FreeBSD-src-91fb8e3f9c1a952bb775f1bb31ea6559b00513de.tar.gz
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.
Diffstat (limited to 'share/examples')
-rw-r--r--share/examples/netgraph/ngctl4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/examples/netgraph/ngctl b/share/examples/netgraph/ngctl
index 26ec749..80a7f22 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;
# };
#
OpenPOWER on IntegriCloud