diff options
author | archie <archie@FreeBSD.org> | 2002-05-31 23:48:03 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2002-05-31 23:48:03 +0000 |
commit | b10887dc2b5e16221d7f03cd5ac6ef4fb431be07 (patch) | |
tree | a3614f18ebb460f641055c46c1ae4703125a0458 /sys/netgraph/ng_ppp.h | |
parent | 5f569c908a7d63a3364c4e60c565498bceb4ff53 (diff) | |
download | FreeBSD-src-b10887dc2b5e16221d7f03cd5ac6ef4fb431be07.zip FreeBSD-src-b10887dc2b5e16221d7f03cd5ac6ef4fb431be07.tar.gz |
Fix GCC warnings caused by initializing a zero length array. In the process,
simply things a bit by getting rid of 'struct ng_parse_struct_info' which
was useless because it only contained one field.
MFC after: 2 weeks
Diffstat (limited to 'sys/netgraph/ng_ppp.h')
-rw-r--r-- | sys/netgraph/ng_ppp.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/netgraph/ng_ppp.h b/sys/netgraph/ng_ppp.h index b75931e..2dabc4e 100644 --- a/sys/netgraph/ng_ppp.h +++ b/sys/netgraph/ng_ppp.h @@ -93,12 +93,10 @@ struct ng_ppp_mp_state { /* Keep this in sync with the above structure definition */ #define NG_PPP_MP_STATE_TYPE_INFO(atype) { \ - { \ { "rseq", (atype) }, \ { "mseq", &ng_parse_hint32_type }, \ { "xseq", &ng_parse_hint32_type }, \ - { NULL }, \ - } \ + { NULL } \ } /* Per-link config structure */ @@ -113,15 +111,13 @@ struct ng_ppp_link_conf { /* Keep this in sync with the above structure definition */ #define NG_PPP_LINK_TYPE_INFO { \ - { \ { "enableLink", &ng_parse_uint8_type }, \ { "enableProtoComp", &ng_parse_uint8_type }, \ { "enableACFComp", &ng_parse_uint8_type }, \ { "mru", &ng_parse_uint16_type }, \ { "latency", &ng_parse_uint32_type }, \ { "bandwidth", &ng_parse_uint32_type }, \ - { NULL }, \ - } \ + { NULL } \ } /* Bundle config structure */ @@ -145,7 +141,6 @@ struct ng_ppp_bund_conf { /* Keep this in sync with the above structure definition */ #define NG_PPP_BUND_TYPE_INFO { \ - { \ { "mrru", &ng_parse_uint16_type }, \ { "enableMultilink", &ng_parse_uint8_type }, \ { "recvShortSeq", &ng_parse_uint8_type }, \ @@ -162,7 +157,6 @@ struct ng_ppp_bund_conf { { "enableVJCompression", &ng_parse_uint8_type }, \ { "enableVJDecompression", &ng_parse_uint8_type }, \ { NULL } \ - } \ } /* Total node config structure */ @@ -173,11 +167,9 @@ struct ng_ppp_node_conf { /* Keep this in sync with the above structure definition */ #define NG_PPP_CONFIG_TYPE_INFO(bctype, arytype) { \ - { \ { "bund", (bctype) }, \ { "links", (arytype) }, \ { NULL } \ - } \ } /* Statistics struct for a link (or the bundle if NG_PPP_BUNDLE_LINKNUM) */ @@ -194,7 +186,6 @@ struct ng_ppp_link_stat { /* Keep this in sync with the above structure definition */ #define NG_PPP_STATS_TYPE_INFO { \ - { \ { "xmitFrames", &ng_parse_uint32_type }, \ { "xmitOctets", &ng_parse_uint32_type }, \ { "recvFrames", &ng_parse_uint32_type }, \ @@ -204,7 +195,6 @@ struct ng_ppp_link_stat { { "dupFragments", &ng_parse_uint32_type }, \ { "dropFragments", &ng_parse_uint32_type }, \ { NULL } \ - } \ } #endif /* _NETGRAPH_PPP_H_ */ |