From 5fb0034a3160e8d52e80aaf2278a6eaa9805c2f6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 26 Jun 1996 21:01:48 +0000 Subject: (std_runtime_options): Variable removed. (parse_runtime_opt): Function removed. (netfs_set_options): Change to use fshelp_set_options. --- libnetfs/set-options.c | 23 +++++------------------ 1 file 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; } -- cgit v1.2.3