aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/ccache/file/fcc_sseq.c
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-03-08 01:04:08 +0000
committerKeith Vetter <keithv@fusion.com>1995-03-08 01:04:08 +0000
commit4f7713802fc75f1fe85255e94d4932b3bbb2de4f (patch)
tree2d768a46afc7a4b68d4fd4d30a5cfd9cdc141d87 /src/lib/krb5/ccache/file/fcc_sseq.c
parent731056fb3afd5f83f94f7ac48af049d39fed58e1 (diff)
downloadkrb5-4f7713802fc75f1fe85255e94d4932b3bbb2de4f.zip
krb5-4f7713802fc75f1fe85255e94d4932b3bbb2de4f.tar.gz
krb5-4f7713802fc75f1fe85255e94d4932b3bbb2de4f.tar.bz2
Ported the ccache directory to the PC. This is temporary--eventually we'll
use the in-memory solution from k4. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5081 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/ccache/file/fcc_sseq.c')
-rw-r--r--src/lib/krb5/ccache/file/fcc_sseq.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/krb5/ccache/file/fcc_sseq.c b/src/lib/krb5/ccache/file/fcc_sseq.c
index 622cd57..c2d1645 100644
--- a/src/lib/krb5/ccache/file/fcc_sseq.c
+++ b/src/lib/krb5/ccache/file/fcc_sseq.c
@@ -40,23 +40,23 @@
* KRB5_CC_NOMEM
* system errors
*/
-krb5_error_code
+krb5_error_code INTERFACE
krb5_fcc_start_seq_get(context, id, cursor)
krb5_context context;
krb5_ccache id;
krb5_cc_cursor *cursor;
{
krb5_fcc_cursor *fcursor;
- int ret = KRB5_OK;
+ krb5_error_code kret = KRB5_OK;
fcursor = (krb5_fcc_cursor *) malloc(sizeof(krb5_fcc_cursor));
if (fcursor == NULL)
return KRB5_CC_NOMEM;
if (OPENCLOSE(id)) {
- ret = krb5_fcc_open_file(context, id, FCC_OPEN_RDONLY);
- if (ret) {
+ kret = krb5_fcc_open_file(context, id, FCC_OPEN_RDONLY);
+ if (kret) {
krb5_xfree(fcursor);
- return ret;
+ return kret;
}
}
else
@@ -69,6 +69,6 @@ krb5_fcc_start_seq_get(context, id, cursor)
fcursor->pos = lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_CUR);
*cursor = (krb5_cc_cursor) fcursor;
- MAYBE_CLOSE(context, id, ret);
- return ret;
+ MAYBE_CLOSE(context, id, kret);
+ return kret;
}