summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-07 23:29:32 +0000
committerMiles Bader <miles@gnu.org>1996-02-07 23:29:32 +0000
commit183ff40e469eda0e19241619b64bc5abd2827b96 (patch)
tree06fad03fb32bec98a04360543fe93f1c365445fd
parent00949584c96e283563352c22e6db2590da750b12 (diff)
(std_runtime_options): Make const.
(diskfs_set_options): Make argp structures const.
-rw-r--r--libdiskfs/opts-set.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdiskfs/opts-set.c b/libdiskfs/opts-set.c
index 450a9347..2e9c038b 100644
--- a/libdiskfs/opts-set.c
+++ b/libdiskfs/opts-set.c
@@ -1,6 +1,6 @@
/* Parse run-time options
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -20,7 +20,7 @@
#include "priv.h"
-static struct argp_option
+static const struct argp_option
std_runtime_options[] =
{
{"remount", 'u', 0, 0, "Flush any meta-data cached in core"},
@@ -59,9 +59,9 @@ diskfs_set_options (int argc, char **argv)
}
return 0;
}
- struct argp common_argp = { diskfs_common_options, parse_opt };
- struct argp *parents[] = { &common_argp, 0 };
- struct argp argp = { std_runtime_options, parse_opt, 0, 0, parents };
+ const struct argp common_argp = { diskfs_common_options, parse_opt };
+ const struct argp *parents[] = { &common_argp, 0 };
+ const struct argp argp = { std_runtime_options, parse_opt, 0, 0, parents };
/* Call the user option parsing routine, giving it our set of options to do
with as it pleases. */