From: John Kohl Date: Tue, 29 May 1990 12:05:22 +0000 (+0000) Subject: change default name interface X-Git-Tag: krb5-1.0-alpha2~453 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2c2c5072c6b689ca3f461400f29e22246b7ef63;p=krb5.git change default name interface git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@954 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); }