summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/atm/ng_atm.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2004-01-26 14:57:49 +0000
committerharti <harti@FreeBSD.org>2004-01-26 14:57:49 +0000
commit7ce7ecdff6a94c18c2c9e30b1348c73f3e3a6175 (patch)
treebba00c22b24f1bb8b6ba2c250f632c22397a53c3 /sys/netgraph/atm/ng_atm.h
parentc4f8c33a9a3e15f4defd14c68239ba9df07e499d (diff)
downloadFreeBSD-src-7ce7ecdff6a94c18c2c9e30b1348c73f3e3a6175.zip
FreeBSD-src-7ce7ecdff6a94c18c2c9e30b1348c73f3e3a6175.tar.gz
Get rid of the old *LEN constants in favour of the new *SIZ constants
that also include the trailing \0 byte.
Diffstat (limited to 'sys/netgraph/atm/ng_atm.h')
-rw-r--r--sys/netgraph/atm/ng_atm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/atm/ng_atm.h b/sys/netgraph/atm/ng_atm.h
index 675b437..ebf7cb6 100644
--- a/sys/netgraph/atm/ng_atm.h
+++ b/sys/netgraph/atm/ng_atm.h
@@ -126,7 +126,7 @@ struct ngm_atm_config {
* Structure to open a VCC.
*/
struct ngm_atm_cpcs_init {
- char name[NG_HOOKLEN + 1];
+ char name[NG_HOOKSIZ];
uint32_t flags; /* flags. (if_atm.h) */
uint16_t vci; /* VCI to open */
uint16_t vpi; /* VPI to open */
@@ -177,7 +177,7 @@ struct ngm_atm_cpcs_init {
* Structure to close a VCI without disconnecting the hook
*/
struct ngm_atm_cpcs_term {
- char name[NG_HOOKLEN + 1];
+ char name[NG_HOOKSIZ];
};
#define NGM_ATM_CPCS_TERM_INFO \
{ \
OpenPOWER on IntegriCloud