remove kauth_cred_destroy, which isn't used anymore. ok'ed by Elad Efrat.
This commit is contained in:
parent
3ef3d785cc
commit
b7da9130d1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_auth.c,v 1.4 2006/05/24 23:00:49 yamt Exp $ */
|
||||
/* $NetBSD: kern_auth.c,v 1.5 2006/05/28 06:49:27 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005, 2006 Elad Efrat <elad@NetBSD.org>
|
||||
|
@ -123,14 +123,6 @@ kauth_cred_hold(kauth_cred_t cred)
|
|||
simple_unlock(&cred->cr_lock);
|
||||
}
|
||||
|
||||
void
|
||||
kauth_cred_destroy(kauth_cred_t cred)
|
||||
{
|
||||
KASSERT(cred != NULL);
|
||||
|
||||
pool_put(&kauth_cred_pool, cred);
|
||||
}
|
||||
|
||||
/* Decrease reference count to cred. If reached zero, free it. */
|
||||
void
|
||||
kauth_cred_free(kauth_cred_t cred)
|
||||
|
@ -142,7 +134,7 @@ kauth_cred_free(kauth_cred_t cred)
|
|||
simple_unlock(&cred->cr_lock);
|
||||
|
||||
if (cred->cr_refcnt == 0)
|
||||
kauth_cred_destroy(cred);
|
||||
pool_put(&kauth_cred_pool, cred);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kauth.h,v 1.2 2006/05/14 21:12:38 elad Exp $ */
|
||||
/* $NetBSD: kauth.h,v 1.3 2006/05/28 06:49:27 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005, 2006 Elad Efrat <elad@NetBSD.org>
|
||||
|
@ -103,7 +103,6 @@ int kauth_authorize_process(kauth_cred_t, kauth_action_t, struct proc *,
|
|||
/* Kauth credentials management routines. */
|
||||
kauth_cred_t kauth_cred_alloc(void);
|
||||
void kauth_cred_free(kauth_cred_t);
|
||||
void kauth_cred_destroy(kauth_cred_t);
|
||||
void kauth_cred_clone(kauth_cred_t, kauth_cred_t);
|
||||
kauth_cred_t kauth_cred_dup(kauth_cred_t);
|
||||
kauth_cred_t kauth_cred_copy(kauth_cred_t);
|
||||
|
|
Loading…
Reference in New Issue