summaryrefslogtreecommitdiff
path: root/trans/hello.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2001-02-12 22:18:55 +0000
committerMarcus Brinkmann <marcus@gnu.org>2001-02-12 22:18:55 +0000
commit646ac529c3d679f49f7866ffd65dbd94c3a500a3 (patch)
tree338208fb17e7f5546e19943338efc8def9c432f6 /trans/hello.c
parent2888457f4fc3ebfd5ec6e4f6baf5e02223b1c5c6 (diff)
auth/
2001-02-12 Marcus Brinkmann <marcus@gnu.org> * auth.c (main): New variable ARGP defining a doc string. Pass address of ARGP to argp_parse(). exec/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * main.c: Change hurd version name from proc to exec. (main): Add period to doc string. ftpfs/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * ftpfs.c: Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. hostmux/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * hostmux.c: Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. usermux/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * usermux.c (options): Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. trans/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * 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 <version.h>, new global variable ARGP_PROGRAM_VERSION. * crash.c: Include <version.h>, add global variable ARGP_PROGRAM_VERSION. * hello.c: Include <version.h>, 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.
Diffstat (limited to 'trans/hello.c')
-rw-r--r--trans/hello.c7
1 files changed, 6 insertions, 1 deletions
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 <fcntl.h>
#include <sys/mman.h>
+#include <version.h>
+
+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. */