diff options
Diffstat (limited to 'utils/fsysopts.c')
-rw-r--r-- | utils/fsysopts.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/utils/fsysopts.c b/utils/fsysopts.c index 076e2a87..f3458a03 100644 --- a/utils/fsysopts.c +++ b/utils/fsysopts.c @@ -1,8 +1,8 @@ /* Set options in a running filesystem - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995,96,97,98,2002,2004 Free Software Foundation, Inc. - Written by Miles Bader <miles@gnu.ai.mit.edu> + Written by Miles Bader <miles@gnu.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -28,10 +28,11 @@ #include <error.h> #include <argz.h> +#include <version.h> #include <hurd/fsys.h> -char *argp_program_version = "fsysopts 1.0 (GNU " HURD_RELEASE ")"; +const char *argp_program_version = STANDARD_HURD_VERSION (fsysopts); static struct argp_option options[] = { @@ -40,14 +41,15 @@ static struct argp_option options[] = {0, 0, 0, 0} }; static char *args_doc = "FILESYS [FS_OPTION...]"; -static char *doc = "The legal values for FS_OPTION depends on FILESYS, but\ - some common ones are: --readonly, --writable, --remount, --sync[=INTERVAL],\ +static char *doc = "Get or set command line options for running translator FILESYS." +"\vThe legal values for FS_OPTION depends on FILESYS, but\ + some common ones are: --readonly, --writable, --update, --sync[=INTERVAL],\ and --nosync.\n\nIf no options are supplied, FILESYS's existing options\ are printed"; /* ---------------------------------------------------------------- */ -void +int main(int argc, char *argv[]) { error_t err; @@ -58,7 +60,7 @@ main(int argc, char *argv[]) /* The filesystem options vector, in '\0' separated format. */ char *argz = 0; - int argz_len = 0; + size_t argz_len = 0; int deref = 0, recursive = 0; @@ -122,5 +124,5 @@ main(int argc, char *argv[]) puts (argz); } - exit(0); + return 0; } |