summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/options.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/options.c
parent2008-09-07 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-db09424d436bd5ee86fb47685ff83c2d8f70c0cd.tar.bz2
Add missing initializers.
Diffstat (limited to 'cpukit/pppd/options.c')
-rw-r--r--cpukit/pppd/options.c96
1 files changed, 48 insertions, 48 deletions
diff --git a/cpukit/pppd/options.c b/cpukit/pppd/options.c
index eb6cd34d01..8ca387f042 100644
--- a/cpukit/pppd/options.c
+++ b/cpukit/pppd/options.c
@@ -162,116 +162,116 @@ static struct option_list *extra_options = NULL;
*/
option_t general_options[] = {
{ "debug", o_int, &debug,
- "Increase debugging level", OPT_INC|OPT_NOARG|1 },
+ "Increase debugging level", OPT_INC|OPT_NOARG|1, NULL, 0, 0 },
{ "-d", o_int, &debug,
- "Increase debugging level", OPT_INC|OPT_NOARG|1 },
+ "Increase debugging level", OPT_INC|OPT_NOARG|1, NULL, 0, 0 },
{ "kdebug", o_int, &kdebugflag,
- "Set kernel driver debug level" },
+ "Set kernel driver debug level", 0, NULL, 0, 0 },
{ "nodetach", o_bool, &nodetach,
- "Don't detach from controlling tty", 1 },
+ "Don't detach from controlling tty", 1, NULL, 0, 0 },
{ "-detach", o_bool, &nodetach,
- "Don't detach from controlling tty", 1 },
+ "Don't detach from controlling tty", 1, NULL, 0, 0 },
{ "updetach", o_bool, &updetach,
- "Detach from controlling tty once link is up", 1 },
+ "Detach from controlling tty once link is up", 1, NULL, 0, 0 },
{ "holdoff", o_int, &holdoff,
- "Set time in seconds before retrying connection" },
+ "Set time in seconds before retrying connection", 0, NULL, 0, 0 },
{ "idle", o_int, &idle_time_limit,
- "Set time in seconds before disconnecting idle link" },
+ "Set time in seconds before disconnecting idle link", 0, NULL, 0, 0 },
{ "lock", o_bool, &lockflag,
- "Lock serial device with UUCP-style lock file", 1 },
+ "Lock serial device with UUCP-style lock file", 1, NULL, 0, 0 },
{ "-all", o_special_noarg, noopt,
- "Don't request/allow any LCP or IPCP options (useless)" },
+ "Don't request/allow any LCP or IPCP options (useless)", 0, NULL, 0, 0 },
{ "init", o_string, &initializer,
"A program to initialize the device",
- OPT_A2INFO | OPT_PRIVFIX, &initializer_info },
+ OPT_A2INFO | OPT_PRIVFIX, &initializer_info, 0, 0 },
{ "connect", o_string, &connect_script,
"A program to set up a connection",
- OPT_A2INFO | OPT_PRIVFIX, &connect_script_info },
+ OPT_A2INFO | OPT_PRIVFIX, &connect_script_info, 0, 0 },
{ "disconnect", o_string, &disconnect_script,
"Program to disconnect serial device",
- OPT_A2INFO | OPT_PRIVFIX, &disconnect_script_info },
+ OPT_A2INFO | OPT_PRIVFIX, &disconnect_script_info, 0, 0 },
{ "welcome", o_string, &welcomer,
"Script to welcome client",
- OPT_A2INFO | OPT_PRIVFIX, &welcomer_info },
+ OPT_A2INFO | OPT_PRIVFIX, &welcomer_info, 0, 0 },
{ "pty", o_string, &ptycommand,
"Script to run on pseudo-tty master side",
- OPT_A2INFO | OPT_PRIVFIX | OPT_DEVNAM, &ptycommand_info },
+ OPT_A2INFO | OPT_PRIVFIX | OPT_DEVNAM, &ptycommand_info, 0, 0 },
{ "notty", o_bool, &notty,
- "Input/output is not a tty", OPT_DEVNAM | 1 },
+ "Input/output is not a tty", OPT_DEVNAM | 1, NULL, 0, 0 },
{ "record", o_string, &record_file,
- "Record characters sent/received to file" },
+ "Record characters sent/received to file", 0, NULL, 0, 0 },
{ "maxconnect", o_int, &maxconnect,
- "Set connection time limit", OPT_LLIMIT|OPT_NOINCR|OPT_ZEROINF },
+ "Set connection time limit", OPT_LLIMIT|OPT_NOINCR|OPT_ZEROINF, NULL, 0, 0 },
{ "crtscts", o_int, &crtscts,
- "Set hardware (RTS/CTS) flow control", OPT_NOARG|OPT_VAL(1) },
+ "Set hardware (RTS/CTS) flow control", OPT_NOARG|OPT_VAL(1), NULL, 0, 0 },
{ "nocrtscts", o_int, &crtscts,
- "Disable hardware flow control", OPT_NOARG|OPT_VAL(-1) },
+ "Disable hardware flow control", OPT_NOARG|OPT_VAL(-1), NULL, 0, 0 },
{ "-crtscts", o_int, &crtscts,
- "Disable hardware flow control", OPT_NOARG|OPT_VAL(-1) },
+ "Disable hardware flow control", OPT_NOARG|OPT_VAL(-1), NULL, 0, 0 },
{ "cdtrcts", o_int, &crtscts,
- "Set alternate hardware (DTR/CTS) flow control", OPT_NOARG|OPT_VAL(2) },
+ "Set alternate hardware (DTR/CTS) flow control", OPT_NOARG|OPT_VAL(2), NULL, 0, 0 },
{ "nocdtrcts", o_int, &crtscts,
- "Disable hardware flow control", OPT_NOARG|OPT_VAL(-1) },
+ "Disable hardware flow control", OPT_NOARG|OPT_VAL(-1), NULL, 0, 0 },
{ "xonxoff", o_special_noarg, setxonxoff,
- "Set software (XON/XOFF) flow control" },
+ "Set software (XON/XOFF) flow control", 0, NULL, 0, 0 },
{ "domain", o_special, setdomain,
- "Add given domain name to hostname" },
+ "Add given domain name to hostname", 0, NULL, 0, 0 },
{ "mtu", o_int, &lcp_allowoptions[0].mru,
"Set our MTU", OPT_LIMITS, NULL, MAXMRU, MINMRU },
{ "netmask", o_special, setnetmask,
- "set netmask" },
+ "set netmask", 0, NULL, 0, 0 },
{ "modem", o_bool, &modem,
- "Use modem control lines", 1 },
+ "Use modem control lines", 1, NULL, 0, 0 },
{ "local", o_bool, &modem,
- "Don't use modem control lines" },
+ "Don't use modem control lines", 0, NULL, 0, 0 },
{ "file", o_special, readfile,
- "Take options from a file", OPT_PREPASS },
+ "Take options from a file", OPT_PREPASS, NULL, 0, 0 },
{ "call", o_special, callfile,
- "Take options from a privileged file", OPT_PREPASS },
+ "Take options from a privileged file", OPT_PREPASS, NULL, 0, 0 },
{ "persist", o_bool, &persist,
- "Keep on reopening connection after close", 1 },
+ "Keep on reopening connection after close", 1, NULL, 0, 0 },
{ "nopersist", o_bool, &persist,
- "Turn off persist option" },
+ "Turn off persist option", 0, NULL, 0, 0 },
{ "demand", o_bool, &demand,
- "Dial on demand", OPT_INITONLY | 1, &persist },
+ "Dial on demand", OPT_INITONLY | 1, &persist, 0, 0 },
{ "sync", o_bool, &sync_serial,
- "Use synchronous HDLC serial encoding", 1 },
+ "Use synchronous HDLC serial encoding", 1, NULL, 0, 0 },
{ "logfd", o_int, &log_to_fd,
- "Send log messages to this file descriptor" },
+ "Send log messages to this file descriptor", 0, NULL, 0, 0 },
{ "logfile", o_special, setlogfile,
- "Append log messages to this file" },
+ "Append log messages to this file", 0, NULL, 0, 0 },
{ "nolog", o_int, &log_to_fd,
"Don't send log messages to any file",
- OPT_NOARG | OPT_VAL(-1) },
+ OPT_NOARG | OPT_VAL(-1), NULL, 0, 0 },
{ "nologfd", o_int, &log_to_fd,
"Don't send log messages to any file descriptor",
- OPT_NOARG | OPT_VAL(-1) },
+ OPT_NOARG | OPT_VAL(-1), NULL, 0, 0 },
{ "linkname", o_string, linkname,
"Set logical name for link",
- OPT_PRIV|OPT_STATIC, NULL, MAXPATHLEN },
+ OPT_PRIV|OPT_STATIC, NULL, MAXPATHLEN, 0 },
{ "maxfail", o_int, &maxfail,
- "Maximum number of unsuccessful connection attempts to allow" },
+ "Maximum number of unsuccessful connection attempts to allow", 0, NULL, 0, 0 },
{ "ktune", o_bool, &tune_kernel,
- "Alter kernel settings as necessary", 1 },
+ "Alter kernel settings as necessary", 1, NULL, 0, 0 },
{ "noktune", o_bool, &tune_kernel,
- "Don't alter kernel settings", 0 },
+ "Don't alter kernel settings", 0, NULL, 0, 0 },
{ "connect-delay", o_int, &connect_delay,
- "Maximum time (in ms) to wait after connect script finishes" },
+ "Maximum time (in ms) to wait after connect script finishes", 0, NULL, 0, 0 },
#ifdef PLUGIN
{ "plugin", o_special, loadplugin,
- "Load a plug-in module into pppd", OPT_PRIV },
+ "Load a plug-in module into pppd", OPT_PRIV, NULL, 0, 0 },
#endif
#ifdef PPP_FILTER
{ "pdebug", o_int, &dflag,
- "libpcap debugging" },
+ "libpcap debugging", 0, NULL, 0, 0 },
{ "pass-filter", 1, setpassfilter,
- "set filter for packets to pass" },
+ "set filter for packets to pass", 0, NULL, 0, 0 },
{ "active-filter", 1, setactivefilter,
- "set filter for active pkts" },
+ "set filter for active pkts", 0, NULL, 0, 0 },
#endif
- { NULL }
+ { NULL, 0, NULL, NULL, 0, NULL, 0, 0 }
};
#ifndef IMPLEMENTATION