diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-08-17 14:39:44 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-08-17 14:39:44 +0000 |
commit | f75549596ed93c658805f3df40ca4d9853b28213 (patch) | |
tree | 4b8e1e4e26141d2f97d2aaa656cd7c0926dd85db | |
parent | 0aba4a9b363f2264fb5b3409a9aa93a5b5f3c545 (diff) | |
download | krb5-f75549596ed93c658805f3df40ca4d9853b28213.tar.gz krb5-f75549596ed93c658805f3df40ca4d9853b28213.tar.xz krb5-f75549596ed93c658805f3df40ca4d9853b28213.zip |
Remove unused variables resulting from r22521, and also remove the
unused file svr_misc_free.c.
ticket: 6544
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22523 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/kadmin/server/server_stubs.c | 1 | ||||
-rw-r--r-- | src/lib/kadm5/misc_free.c | 2 | ||||
-rw-r--r-- | src/lib/kadm5/srv/svr_misc_free.c | 34 | ||||
-rw-r--r-- | src/lib/kadm5/srv/svr_principal.c | 2 |
4 files changed, 0 insertions, 39 deletions
diff --git a/src/kadmin/server/server_stubs.c b/src/kadmin/server/server_stubs.c index ebef752aec..dc949ff18b 100644 --- a/src/kadmin/server/server_stubs.c +++ b/src/kadmin/server/server_stubs.c @@ -1398,7 +1398,6 @@ get_policy_2_svc(gpol_arg *arg, struct svc_req *rqstp) gss_buffer_desc client_name, service_name; OM_uint32 minor_stat; - kadm5_policy_ent_t e; kadm5_principal_ent_rec caller_ent; kadm5_server_handle_t handle; const char *errmsg = NULL; diff --git a/src/lib/kadm5/misc_free.c b/src/lib/kadm5/misc_free.c index 066bc73986..b0e3d24ee2 100644 --- a/src/lib/kadm5/misc_free.c +++ b/src/lib/kadm5/misc_free.c @@ -14,8 +14,6 @@ static char *rcsid = "$Header$"; kadm5_ret_t kadm5_free_policy_ent(void *server_handle, kadm5_policy_ent_t val) { - kadm5_server_handle_t handle = server_handle; - _KADM5_CHECK_HANDLE(server_handle); if (val) diff --git a/src/lib/kadm5/srv/svr_misc_free.c b/src/lib/kadm5/srv/svr_misc_free.c deleted file mode 100644 index 1c87f0689e..0000000000 --- a/src/lib/kadm5/srv/svr_misc_free.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved - * - * $Header$ - * - */ - -#if !defined(lint) && !defined(__CODECENTER__) -static char *rcsid = "$Header$"; -#endif -#include <kadm5/admin.h> -#include <stdlib.h> -#include "server_internal.h" - -kadm5_ret_t -kadm5_free_principal_ent(void *server_handle, - kadm5_principal_ent_t val) -{ - kadm5_server_handle_t handle = server_handle; - - CHECK_HANDLE(server_handle); - - if(val) { - if(val->principal) - krb5_free_principal(handle->context, val->principal); - if(val->mod_name) - krb5_free_principal(handle->context, val->mod_name); - if(val->policy) - free(val->policy); - - /* XXX free key_data and tl_data */ - } - return KADM5_OK; -} diff --git a/src/lib/kadm5/srv/svr_principal.c b/src/lib/kadm5/srv/svr_principal.c index 63f6aeabb7..5c5cdc8cc9 100644 --- a/src/lib/kadm5/srv/svr_principal.c +++ b/src/lib/kadm5/srv/svr_principal.c @@ -1476,7 +1476,6 @@ kadm5_randkey_principal_3(void *server_handle, osa_princ_ent_rec adb; krb5_int32 now; kadm5_policy_ent_rec pol; - krb5_key_data *key_data; int ret, last_pwd, have_pol = 0; kadm5_server_handle_t handle = server_handle; krb5_keyblock *act_mkey; @@ -2004,7 +2003,6 @@ kadm5_get_principal_keys(void *server_handle /* IN */, { krb5_db_entry kdb; osa_princ_ent_rec adb; - krb5_key_data *key_data; kadm5_ret_t ret; kadm5_server_handle_t handle = server_handle; krb5_keyblock *mkey_ptr; |