summaryrefslogtreecommitdiffstats
path: root/share/man/man4/ng_atm.4
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/man/man4/ng_atm.4
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/man/man4/ng_atm.4')
-rw-r--r--share/man/man4/ng_atm.44
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man4/ng_atm.4 b/share/man/man4/ng_atm.4
index 0907115..c95d56f 100644
--- a/share/man/man4/ng_atm.4
+++ b/share/man/man4/ng_atm.4
@@ -232,7 +232,7 @@ all traffic types however):
Initialize a VCC for sending and receiving. The argument is a structure:
.Bd -literal
struct ng_atm_cpcs_init {
- char name[NG_HOOKLEN + 1];
+ char name[NG_HOOKSIZ];
uint32_t flags; /* flags. (if_natmio.h) */
uint16_t vci; /* VCI to open */
uint16_t vpi; /* VPI to open */
@@ -276,7 +276,7 @@ type of traffic.
Stop sending and receiving on the indicated hook. The argument is a
.Bd -literal
struct ng_atm_cpcs_term {
- char name[NG_HOOKLEN + 1];
+ char name[NG_HOOKSIZ];
};
.Ed
.El
OpenPOWER on IntegriCloud