summaryrefslogtreecommitdiff
path: root/nfs/main.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-02 00:54:38 +0000
committerMiles Bader <miles@gnu.org>1996-03-02 00:54:38 +0000
commitd22acc3e7430cae506d4ffa4dc44866241faf30a (patch)
tree5f95aad19331a87b8de0395706a0d2224c6851c3 /nfs/main.c
parent16b92508dc935bff82ba00db36033e8b5cf26f04 (diff)
Formerly main.c.~12~
Diffstat (limited to 'nfs/main.c')
-rw-r--r--nfs/main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/nfs/main.c b/nfs/main.c
index cb154ed7..aa065518 100644
--- a/nfs/main.c
+++ b/nfs/main.c
@@ -67,7 +67,7 @@ int write_size = DEFAULT_WRITE_SIZE;
#define _D(what) __D(DEFAULT_ ## what)
/* Options usable both at startup and at runtime. */
-static struct argp_option common_options[] =
+static const struct argp_option common_options[] =
{
{0,0,0,0,0,1},
{"soft", OPT_SOFT, "RETRIES", OPTION_ARG_OPTIONAL,
@@ -124,7 +124,7 @@ parse_common_opt (int key, char *arg, struct argp_state *state)
}
/* Options usable only at startup. */
-static struct argp_option startup_options[] = {
+static const struct argp_option startup_options[] = {
{0,0,0,0,"Server specification:",10},
{"mount-port", OPT_MNT_PORT, "PORT", 0,
"Port for mount server"},
@@ -234,15 +234,14 @@ parse_startup_opt (int key, char *arg, struct argp_state *state)
int
main (int argc, char **argv)
{
+ struct argp common_argp = { common_options, parse_common_opt };
+ const struct argp *argp_parents[] = { &common_argp, 0 };
+ struct argp argp =
+ { startup_options, parse_startup_opt, args_doc, doc, argp_parents };
mach_port_t bootstrap;
struct sockaddr_in addr;
int ret;
- struct argp common_argp = {common_options, parse_common_opt};
- const struct argp *argp_parents[] = {&common_argp, 0};
- struct argp argp = {startup_options, parse_startup_opt, args_doc, doc,
- argp_parents};
-
argp_parse (&argp, argc, argv, 0, 0);
while (hold);