diff options
author | Miles Bader <miles@gnu.org> | 1996-09-02 01:51:48 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-09-02 01:51:48 +0000 |
commit | 613d8ebe5d0040a4a2679d9a45a20c4c54ef54c3 (patch) | |
tree | 1c718abcf72e07c2dcd4a31c2380499f0e98836f | |
parent | 0d66095c6112cd5972ccd0cf0061f2ed33beaf0a (diff) |
(argp_program_version): New variable.
(main): Call argp_parse with just a doc string.
<argp.h>: New include.
-rw-r--r-- | utils/sync.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/sync.c b/utils/sync.c index bce972e8..3a10cc1b 100644 --- a/utils/sync.c +++ b/utils/sync.c @@ -1,5 +1,5 @@ /* Call sync synchronously. - Copyright (C) 1994, 1995 Free Software Foundation, Inc. + Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -19,10 +19,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <hurd.h> +#include <argp.h> + +char *argp_program_version = "sync 1.0 (GNU " HURD_RELEASE ")"; int -main () +main (int argc, char *argv[]) { + struct argp argp = + {0, 0, 0, "Force all pending disk writes to be done immediately"}; + argp_parse (&argp, argc, argv, 0, 0, 0); __USEPORT (CRDIR, __file_syncfs (port, 1, 1)); return 0; } |