fix stdcc.c to build without USE_CCAPI_V3
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 30 Jun 2006 00:46:14 +0000 (00:46 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 30 Jun 2006 00:46:14 +0000 (00:46 +0000)
stdcc.c: should build without USE_CCAPI_V3

ticket: new

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

src/lib/krb5/ccache/ccapi/stdcc.c

index cd4a1f3d7ddc9292628579b79fa2dd5d71637efd..ff3e9a83641a07b659e1d347d7558c61b05123f3 100644 (file)
@@ -191,8 +191,13 @@ static krb5_error_code cc_err_xlate(int err)
 {
        const struct err_xlate *p;
 
+#ifdef USE_CCAPI_V3
        if (err == ccNoError)
                return 0;
+#else
+        if (err == CC_NOERROR)
+               return 0;
+#endif
 
        for (p = err_xlate_table; p->cc_err; p++) {
                if (err == p->cc_err)