From 183ff40e469eda0e19241619b64bc5abd2827b96 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 7 Feb 1996 23:29:32 +0000 Subject: (std_runtime_options): Make const. (diskfs_set_options): Make argp structures const. --- libdiskfs/opts-set.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libdiskfs') 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. */ -- cgit v1.2.3