summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/lcp.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-08 06:45:43 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-08 06:45:43 +0000
commitdb09424d436bd5ee86fb47685ff83c2d8f70c0cd (patch)
tree0e0f2876462c2c5a3b2a85d5cf0fd292bb3552a4 /cpukit/pppd/lcp.c
parent2008-09-07 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-db09424d436bd5ee86fb47685ff83c2d8f70c0cd.tar.bz2
Add missing initializers.
Diffstat (limited to 'cpukit/pppd/lcp.c')
-rw-r--r--cpukit/pppd/lcp.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/cpukit/pppd/lcp.c b/cpukit/pppd/lcp.c
index a931c2d1de..66d4c16f35 100644
--- a/cpukit/pppd/lcp.c
+++ b/cpukit/pppd/lcp.c
@@ -40,7 +40,7 @@ static const char rcsid[] = RCSID;
*/
static int lcp_echo_interval = 0; /* Interval between LCP echo-requests */
static int lcp_echo_fails = 0; /* Tolerance to unanswered echo-requests */
-static bool lax_recv = 0; /* accept control chars in asyncmap */
+static bool lax_recv = false; /* accept control chars in asyncmap */
static int setescape(char **);
@@ -48,66 +48,66 @@ static option_t lcp_option_list[] = {
/* LCP options */
{ "noaccomp", o_bool, &lcp_wantoptions[0].neg_accompression,
"Disable address/control compression",
- OPT_A2COPY, &lcp_allowoptions[0].neg_accompression },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_accompression, 0, 0 },
{ "-ac", o_bool, &lcp_wantoptions[0].neg_accompression,
"Disable address/control compression",
- OPT_A2COPY, &lcp_allowoptions[0].neg_accompression },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_accompression, 0, 0 },
{ "default-asyncmap", o_bool, &lcp_wantoptions[0].neg_asyncmap,
"Disable asyncmap negotiation",
- OPT_A2COPY, &lcp_allowoptions[0].neg_asyncmap },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_asyncmap, 0, 0 },
{ "-am", o_bool, &lcp_wantoptions[0].neg_asyncmap,
"Disable asyncmap negotiation",
- OPT_A2COPY, &lcp_allowoptions[0].neg_asyncmap },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_asyncmap, 0, 0 },
{ "asyncmap", o_uint32, &lcp_wantoptions[0].asyncmap,
"Set asyncmap (for received packets)",
- OPT_OR, &lcp_wantoptions[0].neg_asyncmap },
+ OPT_OR, &lcp_wantoptions[0].neg_asyncmap, 0, 0 },
{ "-as", o_uint32, &lcp_wantoptions[0].asyncmap,
"Set asyncmap (for received packets)",
- OPT_OR, &lcp_wantoptions[0].neg_asyncmap },
+ OPT_OR, &lcp_wantoptions[0].neg_asyncmap, 0, 0 },
{ "nomagic", o_bool, &lcp_wantoptions[0].neg_magicnumber,
"Disable magic number negotiation (looped-back line detection)",
- OPT_A2COPY, &lcp_allowoptions[0].neg_magicnumber },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_magicnumber, 0, 0 },
{ "-mn", o_bool, &lcp_wantoptions[0].neg_magicnumber,
"Disable magic number negotiation (looped-back line detection)",
- OPT_A2COPY, &lcp_allowoptions[0].neg_magicnumber },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_magicnumber, 0, 0 },
{ "default-mru", o_bool, &lcp_wantoptions[0].neg_mru,
"Disable MRU negotiation (use default 1500)",
- OPT_A2COPY, &lcp_allowoptions[0].neg_mru },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_mru, 0, 0 },
{ "-mru", o_bool, &lcp_wantoptions[0].neg_mru,
"Disable MRU negotiation (use default 1500)",
- OPT_A2COPY, &lcp_allowoptions[0].neg_mru },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_mru, 0, 0 },
{ "mru", o_int, &lcp_wantoptions[0].mru,
"Set MRU (maximum received packet size) for negotiation",
- 0, &lcp_wantoptions[0].neg_mru },
+ 0, &lcp_wantoptions[0].neg_mru, 0, 0 },
{ "nopcomp", o_bool, &lcp_wantoptions[0].neg_pcompression,
"Disable protocol field compression",
- OPT_A2COPY, &lcp_allowoptions[0].neg_pcompression },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_pcompression, 0, 0 },
{ "-pc", o_bool, &lcp_wantoptions[0].neg_pcompression,
"Disable protocol field compression",
- OPT_A2COPY, &lcp_allowoptions[0].neg_pcompression },
+ OPT_A2COPY, &lcp_allowoptions[0].neg_pcompression, 0, 0 },
{ "-p", o_bool, &lcp_wantoptions[0].passive,
- "Set passive mode", 1 },
+ "Set passive mode", 1, NULL, 0, 0 },
{ "passive", o_bool, &lcp_wantoptions[0].passive,
- "Set passive mode", 1 },
+ "Set passive mode", 1, NULL, 0, 0 },
{ "silent", o_bool, &lcp_wantoptions[0].silent,
- "Set silent mode", 1 },
+ "Set silent mode", 1, NULL, 0, 0 },
{ "escape", o_special, setescape,
- "List of character codes to escape on transmission" },
+ "List of character codes to escape on transmission", 0, NULL, 0, 0 },
{ "lcp-echo-failure", o_int, &lcp_echo_fails,
- "Set number of consecutive echo failures to indicate link failure" },
+ "Set number of consecutive echo failures to indicate link failure", 0, NULL, 0, 0 },
{ "lcp-echo-interval", o_int, &lcp_echo_interval,
- "Set time in seconds between LCP echo requests" },
+ "Set time in seconds between LCP echo requests", 0, NULL, 0, 0 },
{ "lcp-restart", o_int, &lcp_fsm[0].timeouttime,
- "Set time in seconds between LCP retransmissions" },
+ "Set time in seconds between LCP retransmissions", 0, NULL, 0, 0 },
{ "lcp-max-terminate", o_int, &lcp_fsm[0].maxtermtransmits,
- "Set maximum number of LCP terminate-request transmissions" },
+ "Set maximum number of LCP terminate-request transmissions", 0, NULL, 0, 0 },
{ "lcp-max-configure", o_int, &lcp_fsm[0].maxconfreqtransmits,
- "Set maximum number of LCP configure-request transmissions" },
+ "Set maximum number of LCP configure-request transmissions", 0, NULL, 0, 0 },
{ "lcp-max-failure", o_int, &lcp_fsm[0].maxnakloops,
- "Set limit on number of LCP configure-naks" },
+ "Set limit on number of LCP configure-naks", 0, NULL, 0, 0 },
{ "receive-all", o_bool, &lax_recv,
- "Accept all received control characters", 1 },
- {NULL}
+ "Accept all received control characters", 1, NULL, 0, 0 },
+ {NULL, 0, NULL, NULL, 0, NULL, 0, 0}
};
/* global vars */