From 17d46db957ec2e063bece1d3420327e09ea0dd32 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 7 Jul 1996 03:27:22 +0000 Subject: (AUTH_VERSION): New macro. (argp_program_version): New variable. (auth_version): Variable removed. (main): Call argp_parse to get defaults. Use AUTH_VERSION instead of auth_version. : New include. : Changed from . --- auth/auth.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'auth') diff --git a/auth/auth.c b/auth/auth.c index 872185e0..35aa7dcc 100644 --- a/auth/auth.c +++ b/auth/auth.c @@ -25,14 +25,16 @@ #include #include #include -#include #include +#include #include +#include #include "auth_S.h" #include "auth_reply_U.h" -char *auth_version = "0.0"; +#define AUTH_VERSION "0.0" +char *argp_program_version = "auth " AUTH_VERSION " (GNU " HURD_RELEASE ")"; /* Auth handles are server ports with sets of ids. */ struct authhandle @@ -433,6 +435,8 @@ main (int argc, char **argv) mach_port_t hostpriv, masterdev; struct authhandle *firstauth; + argp_parse (0, argc, argv, 0, 0, 0); + auth_bucket = ports_create_bucket (); authhandle_portclass = ports_create_class (&destroy_authhandle, 0); @@ -452,7 +456,7 @@ main (int argc, char **argv) /* Register ourselves with the proc server and then start signals. */ proc_getprivports (proc, &hostpriv, &masterdev); - proc_register_version (proc, hostpriv, "auth", HURD_RELEASE, auth_version); + proc_register_version (proc, hostpriv, "auth", HURD_RELEASE, AUTH_VERSION); mach_port_deallocate (mach_task_self (), masterdev); _hurd_port_set (&_hurd_ports[INIT_PORT_PROC], proc); _hurd_proc_init (argv); -- cgit v1.2.3