diff options
author | Miles Bader <miles@gnu.org> | 1995-05-20 01:27:32 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-20 01:27:32 +0000 |
commit | d6e73675ba176b91caee7ab54ceec87632d6f21f (patch) | |
tree | 0737f572b09c6a411dfa3d64f054a408f9b9c205 | |
parent | ab21789e767ffc9b3e87947c8ea5fbef70dbffc0 (diff) |
(diskfs_S_fsys_set_options): Extract the argument vector and call
diskfs_set_options.
-rw-r--r-- | libdiskfs/fsys-options.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libdiskfs/fsys-options.c b/libdiskfs/fsys-options.c index 6bb5b55d..e52f582e 100644 --- a/libdiskfs/fsys-options.c +++ b/libdiskfs/fsys-options.c @@ -1,6 +1,6 @@ -/* - Copyright (C) 1994 Free Software Foundation, Inc. - Written by Michael I. Bushnell. +/* Parse run-time options + + Copyright (C) 1995 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -18,6 +18,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <errno.h> +#include <argz.h> + #include "priv.h" #include "fsys_S.h" @@ -27,5 +30,10 @@ diskfs_S_fsys_set_options (fsys_t fsys, char *data, mach_msg_type_number_t len, int do_children) { - return EOPNOTSUPP; + int argc = argz_count (data, len); + char **argv = alloca (sizeof (char *) * (argc + 1)); + + argz_extract (data, len, argv); + + return diskfs_set_options (argc, argv); } |