krb5 commit: Fix unused variables

Greg Hudson ghudson at mit.edu
Fri Apr 14 12:14:33 EDT 2017


https://github.com/krb5/krb5/commit/658894e9b928cf5e0076cd0141ac1ac427141405
commit 658894e9b928cf5e0076cd0141ac1ac427141405
Author: Robbie Harwood <rharwood at redhat.com>
Date:   Thu Feb 16 17:49:16 2017 -0500

    Fix unused variables

 src/lib/krb5/ccache/cc_retr.c                      |    1 -
 src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c |    2 +-
 src/util/ss/data.c                                 |    3 ---
 3 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/lib/krb5/ccache/cc_retr.c b/src/lib/krb5/ccache/cc_retr.c
index 1314d24..163b227 100644
--- a/src/lib/krb5/ccache/cc_retr.c
+++ b/src/lib/krb5/ccache/cc_retr.c
@@ -211,7 +211,6 @@ krb5_cc_retrieve_cred_seq (krb5_context context, krb5_ccache id,
         int pref;
     } fetched, best;
     int have_creds = 0;
-    krb5_flags oflags = 0;
 #define fetchcreds (fetched.creds)
 
     kret = krb5_cc_start_seq_get(context, id, &cursor);
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c
index f5c6ab8..4193b4a 100644
--- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c
+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c
@@ -431,7 +431,7 @@ krb5_ldap_list(krb5_context context, char ***list, char *objectclass,
 {
     char                        *filter=NULL, *dn=NULL;
     krb5_error_code             st=0, tempst=0;
-    int                         i=0, count=0, filterlen=0;
+    int                         count=0, filterlen=0;
     LDAP                        *ld=NULL;
     LDAPMessage                 *result=NULL,*ent=NULL;
     kdb5_dal_handle             *dal_handle=NULL;
diff --git a/src/util/ss/data.c b/src/util/ss/data.c
index 1a56dc7..e0b0995 100644
--- a/src/util/ss/data.c
+++ b/src/util/ss/data.c
@@ -10,8 +10,5 @@
 #include "ss_internal.h"
 #include "copyright.h"
 
-const static char copyright[] =
-    "Copyright 1987, 1988, 1989 by the Massachusetts Institute of Technology";
-
 ss_data **_ss_table = (ss_data **)NULL;
 char *_ss_pager_name = (char *)NULL;


More information about the cvs-krb5 mailing list