diff options
author | Roland McGrath <roland@gnu.org> | 1998-09-04 18:35:01 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-09-04 18:35:01 +0000 |
commit | 5250d031a2fdfcaa688e33b4cab2235c57ea5c46 (patch) | |
tree | ffed69191e2c937afcea8b1b4c3a76aaa46cb8bd /libfshelp | |
parent | 8dcc9c154da590698944e05e153a9f22a9f45e3a (diff) |
1998-09-04 Roland McGrath <roland@baalperazim.frob.com>
* fshelp.h (fshelp_set_options): Use `const' for `char *' parameter.
* set-options.c (fshelp_set_options): Fix defn.
Diffstat (limited to 'libfshelp')
-rw-r--r-- | libfshelp/fshelp.h | 2 | ||||
-rw-r--r-- | libfshelp/set-options.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 50532166..9218b1e6 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -232,7 +232,7 @@ struct argp; /* Include <argp.h> to get the real thing. */ /* Invoke ARGP with data from DATA & LEN, in the standard way. */ error_t fshelp_set_options (struct argp *argp, int flags, - char *argz, size_t argz_len, void *input); + const char *argz, size_t argz_len, void *input); /* Standardized filesystem permission checking */ diff --git a/libfshelp/set-options.c b/libfshelp/set-options.c index ba1e50d5..91004ab2 100644 --- a/libfshelp/set-options.c +++ b/libfshelp/set-options.c @@ -1,6 +1,6 @@ /* Standard filesystem runtime option parsing - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1998 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -32,7 +32,7 @@ /* Invoke ARGP with data from DATA & LEN, in the standard way. */ error_t fshelp_set_options (struct argp *argp, int flags, - char *argz, size_t argz_len, void *input) + const char *argz, size_t argz_len, void *input) { int argc = argz_count (argz, argz_len); char **argv = alloca (sizeof (char *) * (argc + 1)); |