From 646ac529c3d679f49f7866ffd65dbd94c3a500a3 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 12 Feb 2001 22:18:55 +0000 Subject: auth/ 2001-02-12 Marcus Brinkmann * auth.c (main): New variable ARGP defining a doc string. Pass address of ARGP to argp_parse(). exec/ 2001-02-12 Marcus Brinkmann * main.c: Change hurd version name from proc to exec. (main): Add period to doc string. ftpfs/ 2001-02-12 Marcus Brinkmann * ftpfs.c: Include . Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. hostmux/ 2001-02-12 Marcus Brinkmann * hostmux.c: Include . Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. usermux/ 2001-02-12 Marcus Brinkmann * usermux.c (options): Include . Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. trans/ 2001-02-12 Marcus Brinkmann * fifo.c: Make version string say `fifo', not `null'. Add period to doc text in ARGP. * firmlink.c: Add period to doc text in ARGP_DOC, convert semi-colon to colon. * magic.c (options): Add period to DOC. * new-fifo.c (fifo_trans_parse_args): Add doc string to ARGP. Include , new global variable ARGP_PROGRAM_VERSION. * crash.c: Include , add global variable ARGP_PROGRAM_VERSION. * hello.c: Include , add global variable ARGP_PROGRAM_VERSION. (hello_argp): Add doc string. * hello-mt.c: Likewise. * streamio.c: Add period to DOC. Change streamdev to streamio in version string. * password.c (main): Add period to doc string in ARGP. --- trans/hello.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'trans/hello.c') diff --git a/trans/hello.c b/trans/hello.c index d1657dda..4199dd34 100644 --- a/trans/hello.c +++ b/trans/hello.c @@ -26,6 +26,10 @@ #include #include +#include + +const char *argp_program_version = STANDARD_HURD_VERSION (hello); + /* The message we return when we are read. */ static const char hello[] = "Hello, world!\n"; static char *contents = (char *) hello; @@ -244,7 +248,8 @@ trivfs_append_args (struct trivfs_control *fsys, return err; } -static struct argp hello_argp = { options, parse_opt, 0, 0 }; +static struct argp hello_argp = +{ options, parse_opt, 0, "A translator providing a warm greeting." }; /* Setting this variable makes libtrivfs use our argp to parse options passed in an fsys_set_options RPC. */ -- cgit v1.2.3