diff options
author | Miles Bader <miles@gnu.org> | 1996-06-26 21:01:48 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-06-26 21:01:48 +0000 |
commit | 5fb0034a3160e8d52e80aaf2278a6eaa9805c2f6 (patch) | |
tree | 5910b1a446e6b25f4d1594be7b371ab680c63b9f /libnetfs/set-options.c | |
parent | 6e31b9ca1a97d11598556e38d56fc8c9ec132c7e (diff) |
(std_runtime_options): Variable removed.
(parse_runtime_opt): Function removed.
(netfs_set_options): Change to use fshelp_set_options.
Diffstat (limited to 'libnetfs/set-options.c')
-rw-r--r-- | libnetfs/set-options.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/libnetfs/set-options.c b/libnetfs/set-options.c index 4cebd5bd..416d9123 100644 --- a/libnetfs/set-options.c +++ b/libnetfs/set-options.c @@ -20,24 +20,11 @@ #include "netfs.h" -static const struct argp_option -std_runtime_options[] = -{ - {0, 0} -}; - -static error_t -parse_runtime_opt (int key, char *arg, struct argp_state *state) -{ - return EINVAL; -} - error_t -netfs_set_options (int argc, char **argv) +netfs_set_options (char *argz, size_t argz_len) { - const struct argp argp = { std_runtime_options, parse_runtime_opt, 0, 0, 0 }; - - /* Call the user option parsing routine, giving it our set of options to do - with as it pleases. */ - return netfs_parse_runtime_options (argc, argv, &argp); + if (netfs_runtime_argp) + return fshelp_set_options (netfs_runtime_argp, 0, argz, argz_len, 0); + else + return EOPNOTSUPP; } |