summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-07 03:27:22 +0000
committerMiles Bader <miles@gnu.org>1996-07-07 03:27:22 +0000
commit17d46db957ec2e063bece1d3420327e09ea0dd32 (patch)
tree235f5d66d0814f69b6dbf5320c13a940b4cc9438 /auth
parente32e0d45c16d700e90db036ee6fd534e8eb5bba6 (diff)
(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. <argp.h>: New include. <idvec.h>: Changed from <hurd/idvec.h>.
Diffstat (limited to 'auth')
-rw-r--r--auth/auth.c10
1 files changed, 7 insertions, 3 deletions
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 <hurd.h>
#include <hurd/startup.h>
#include <hurd/ports.h>
-#include <hurd/idvec.h>
#include <hurd/ihash.h>
+#include <idvec.h>
#include <assert.h>
+#include <argp.h>
#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);