aboutsummaryrefslogtreecommitdiff
path: root/auth/auth.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-03-01 12:26:59 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-03-01 12:26:59 +0100
commitcff25ce181b3a330f12809373407f4d54f4cc5c4 (patch)
tree2f4bf737e190365208351bced862b95a610b9504 /auth/auth.c
parent666830d8a75a3676f60b48028b115edb19d06cc7 (diff)
downloadhurd-cff25ce181b3a330f12809373407f4d54f4cc5c4.tar.gz
hurd-cff25ce181b3a330f12809373407f4d54f4cc5c4.tar.bz2
hurd-cff25ce181b3a330f12809373407f4d54f4cc5c4.zip
auth: improve the mig mutator functions
Previously, the mig mutator function auth_port_to_handle was defined in auth.c (fakeauth.c), preventing it from being inlined into the mig-generated server functions. Put it in mig-decls.h instead. Rename authmutations.h to mig-mutate.h, auth_mig.h to mig-decls.h. This is the naming convention used for pflocal. * auth/auth.h: New file. * auth/auth_mig.h: Rename to mig-decls.h, add copyright notice, define mutator functions. * auth/authmutations.h: Rename to mig-mutate.h, restore copyright notice, adjust accordingly. * auth/auth.c: Include auth.h, remove auth_port_to_handle. * utils/fakeauth.c: Likewise. * auth/Makefile: Adjust accordingly. * utils/Makefile: Likewise.
Diffstat (limited to 'auth/auth.c')
-rw-r--r--auth/auth.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/auth/auth.c b/auth/auth.c
index e69c4f86..7d35bd37 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -35,6 +35,8 @@
#include "auth_S.h"
#include "auth_reply_U.h"
+#include "auth.h"
+
const char *argp_program_version = STANDARD_HURD_VERSION(auth);
@@ -72,14 +74,6 @@ destroy_authhandle (void *p)
idvec_free_contents (&h->auids);
idvec_free_contents (&h->agids);
}
-
-/* Called by server stub functions. */
-
-authhandle_t
-auth_port_to_handle (auth_t auth)
-{
- return ports_lookup_port (auth_bucket, auth, authhandle_portclass);
-}
/* id management. */