krb5 commit: Remove indirection around ccselect choose method

Greg Hudson ghudson at mit.edu
Tue Sep 5 00:19:16 EDT 2017


https://github.com/krb5/krb5/commit/8415804588d4c30cadb90597d62f1bfed4c438c3
commit 8415804588d4c30cadb90597d62f1bfed4c438c3
Author: Robbie Harwood <rharwood at redhat.com>
Date:   Wed Aug 23 14:55:55 2017 -0400

    Remove indirection around ccselect choose method

 src/lib/krb5/ccache/ccselect.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/src/lib/krb5/ccache/ccselect.c b/src/lib/krb5/ccache/ccselect.c
index ee4b83a..df2115c 100644
--- a/src/lib/krb5/ccache/ccselect.c
+++ b/src/lib/krb5/ccache/ccselect.c
@@ -115,14 +115,6 @@ cleanup:
     return ret;
 }
 
-static krb5_error_code
-choose(krb5_context context, struct ccselect_module_handle *h,
-       krb5_principal server, krb5_ccache *cache_out,
-       krb5_principal *princ_out)
-{
-    return h->vt.choose(context, h->data, server, cache_out, princ_out);
-}
-
 krb5_error_code KRB5_CALLCONV
 krb5_cc_select(krb5_context context, krb5_principal server,
                krb5_ccache *cache_out, krb5_principal *princ_out)
@@ -171,7 +163,7 @@ krb5_cc_select(krb5_context context, krb5_principal server,
             h = *hp;
             if (h->priority != priority)
                 continue;
-            ret = choose(context, h, server, &cache, &princ);
+            ret = h->vt.choose(context, h->data, server, &cache, &princ);
             if (ret == 0) {
                 TRACE_CCSELECT_MODCHOICE(context, h->vt.name, server, cache,
                                          princ);


More information about the cvs-krb5 mailing list