From d2c2c5072c6b689ca3f461400f29e22246b7ef63 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 29 May 1990 12:05:22 +0000 Subject: [PATCH] change default name interface git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@954 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/ccache/ccdefault.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/lib/krb5/ccache/ccdefault.c b/src/lib/krb5/ccache/ccdefault.c index 8517fdeaa..ff201e08a 100644 --- a/src/lib/krb5/ccache/ccdefault.c +++ b/src/lib/krb5/ccache/ccdefault.c @@ -18,15 +18,8 @@ static char rcsid_default_c[] = #include #include -static krb5_ccache default_ccache; - -krb5_ccache krb5_cc_default() +krb5_error_code krb5_cc_default(ccache) +krb5_ccache *ccache; { - if (default_ccache == 0) - krb5_cc_resolve(krb5_cc_default_name(), &default_ccache); - - /* ignore errors; any error will be fatal in future derefs by the - caller. */ - - return default_ccache; + return krb5_cc_resolve(krb5_cc_default_name(), ccache); } -- 2.26.2