From cff25ce181b3a330f12809373407f4d54f4cc5c4 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 1 Mar 2014 12:26:59 +0100 Subject: 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. --- utils/fakeauth.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'utils/fakeauth.c') diff --git a/utils/fakeauth.c b/utils/fakeauth.c index 660295f9..590a421a 100644 --- a/utils/fakeauth.c +++ b/utils/fakeauth.c @@ -30,6 +30,8 @@ #include "auth_request_U.h" #include "interrupt_S.h" +#include "../auth/auth.h" + /* Auth handles are server ports with sets of ids. */ struct authhandle { @@ -63,14 +65,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. */ -- cgit v1.2.3