summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-06-16 05:20:50 +0000
committerTheodore Tso <tytso@mit.edu>1994-06-16 05:20:50 +0000
commitd3b91242dcab55ff26052b1cb1832528fe561596 (patch)
tree17ff14588a9d4aa560350fb9f1ea65d3e58d680f /src/lib
parent39a3e795db74b3581ae017a76422ef08e9f85369 (diff)
downloadkrb5-d3b91242dcab55ff26052b1cb1832528fe561596.tar.gz
krb5-d3b91242dcab55ff26052b1cb1832528fe561596.tar.xz
krb5-d3b91242dcab55ff26052b1cb1832528fe561596.zip
Change use of tell(x) to lseek(x, 0, SEEK_CUR)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3839 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/file/fcc_nseq.c2
-rw-r--r--src/lib/krb5/ccache/file/fcc_sseq.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/file/fcc_nseq.c b/src/lib/krb5/ccache/file/fcc_nseq.c
index d83746221..a76f07c48 100644
--- a/src/lib/krb5/ccache/file/fcc_nseq.c
+++ b/src/lib/krb5/ccache/file/fcc_nseq.c
@@ -98,7 +98,7 @@ krb5_fcc_next_cred(id, cursor, creds)
kret = krb5_fcc_read_data(id, &creds->second_ticket);
TCHECK(kret);
- fcursor->pos = tell(((krb5_fcc_data *) id->data)->fd);
+ fcursor->pos = lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_CUR);
cursor = (krb5_cc_cursor *) fcursor;
lose:
diff --git a/src/lib/krb5/ccache/file/fcc_sseq.c b/src/lib/krb5/ccache/file/fcc_sseq.c
index fd154e511..0a3e13145 100644
--- a/src/lib/krb5/ccache/file/fcc_sseq.c
+++ b/src/lib/krb5/ccache/file/fcc_sseq.c
@@ -70,7 +70,7 @@ krb5_fcc_start_seq_get(id, cursor)
/* Make sure we start reading right after the primary principal */
krb5_fcc_skip_principal(id);
- fcursor->pos = tell(((krb5_fcc_data *) id->data)->fd);
+ fcursor->pos = lseek(((krb5_fcc_data *) id->data)->fd, 0, SEEK_CUR);
*cursor = (krb5_cc_cursor) fcursor;
MAYBE_CLOSE(id, ret);