Remove unused variables resulting from r22521, and also remove the
authorGreg Hudson <ghudson@mit.edu>
Mon, 17 Aug 2009 14:39:44 +0000 (14:39 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 17 Aug 2009 14:39:44 +0000 (14:39 +0000)
unused file svr_misc_free.c.

ticket: 6544

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22523 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/server/server_stubs.c
src/lib/kadm5/misc_free.c
src/lib/kadm5/srv/svr_misc_free.c [deleted file]
src/lib/kadm5/srv/svr_principal.c

index ebef752aec676951175bd85d9bc8b6cda5e486a9..dc949ff18bdceedcf61811c01d834097bb19f9be 100644 (file)
@@ -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;
index 066bc73986f63403183a9309fcd71081dad051fa..b0e3d24ee2e800d8d1c79b55f5ac8fa372758ad8 100644 (file)
@@ -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 (file)
index 1c87f06..0000000
+++ /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;
-}
index 63f6aeabb7aee35f903bf527e8011bc1bbc3da92..5c5cdc8cc96ddc76a02f08bbbee3e3ceddf4d0e4 100644 (file)
@@ -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;