summaryrefslogtreecommitdiff
path: root/libdiskfs/opts-std-startup.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-07 23:29:13 +0000
committerMiles Bader <miles@gnu.org>1996-02-07 23:29:13 +0000
commit00949584c96e283563352c22e6db2590da750b12 (patch)
tree922aadca5fcb767969a8c5211b79d85d6bd08ebf /libdiskfs/opts-std-startup.c
parent666ed13643f6d324abf680a117c3b5c56dd22168 (diff)
(startup_options, dev_startup_options, dev_start_argp_parents,
dev_startup_argp, startup_common_argp, startup_argp_parents, startup_argp, diskfs_startup_argp): Make const.
Diffstat (limited to 'libdiskfs/opts-std-startup.c')
-rw-r--r--libdiskfs/opts-std-startup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libdiskfs/opts-std-startup.c b/libdiskfs/opts-std-startup.c
index 70163578..2fc79cfb 100644
--- a/libdiskfs/opts-std-startup.c
+++ b/libdiskfs/opts-std-startup.c
@@ -1,6 +1,6 @@
/* Standard startup-time command line parser
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -37,7 +37,7 @@ mach_port_t diskfs_exec_server_task = MACH_PORT_NULL;
#define OPT_EXEC_SERVER_TASK (-3)
#define OPT_BOOTFLAGS (-4)
-static struct argp_option
+static const struct argp_option
startup_options[] =
{
{"version", 'V'},
@@ -96,23 +96,23 @@ parse_startup_opt (int opt, char *arg, struct argp_state *state)
}
/* Suck in the common arguments. */
-static struct argp startup_common_argp =
+static const struct argp startup_common_argp =
{ diskfs_common_options, parse_startup_opt };
/* This may be used with argp_parse to parse standard diskfs startup
options, possible chained onto the end of a user argp structure. */
-static struct argp *startup_argp_parents[] = { &startup_common_argp, 0 };
-static struct argp startup_argp =
+static const struct argp *startup_argp_parents[] = { &startup_common_argp, 0 };
+static const struct argp startup_argp =
{ startup_options, parse_startup_opt, 0, 0, startup_argp_parents };
-struct argp *diskfs_startup_argp = &startup_argp;
+const struct argp *diskfs_startup_argp = &startup_argp;
/* ---------------------------------------------------------------- */
int diskfs_use_mach_device = 0;
char *diskfs_device_arg = 0;
-static struct argp_option
+static const struct argp_option
dev_startup_options[] =
{
{"machdev", 'm', 0, 0, "DEVICE is a mach device, not a file"},
@@ -146,9 +146,9 @@ parse_dev_startup_opt (int opt, char *arg, struct argp_state *state)
return 0;
}
-static struct argp *dev_startup_argp_parents[] = { &startup_argp, 0 };
-static struct argp dev_startup_argp =
+static const struct argp *dev_startup_argp_parents[] = { &startup_argp, 0 };
+static const struct argp dev_startup_argp =
{ dev_startup_options, parse_dev_startup_opt, "DEVICE", 0,
dev_startup_argp_parents };
-struct argp *diskfs_device_startup_argp = &dev_startup_argp;
+const struct argp *diskfs_device_startup_argp = &dev_startup_argp;