aboutsummaryrefslogtreecommitdiff
path: root/tell.c
diff options
context:
space:
mode:
Diffstat (limited to 'tell.c')
-rw-r--r--tell.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tell.c b/tell.c
index 47729ed..3b7a048 100644
--- a/tell.c
+++ b/tell.c
@@ -20,22 +20,22 @@
#include "runcap.h"
off_t
-runcap_tell(struct runcap *rc, int stream)
+runcap_tell(struct runcap *rc, int sd)
{
- struct filecapture *fp;
+ struct stream_capture *cap;
off_t off;
- fp = runcap_filecapture(rc, stream);
- if (!fp)
+ cap = runcap_stream_capture(rc, sd);
+ if (!cap)
return -1;
- if (fp->fc_tmpfd != -1) {
- off = lseek(fp->fc_tmpfd, 0, SEEK_CUR);
+ if (cap->sc_storfd != -1) {
+ off = lseek(cap->sc_storfd, 0, SEEK_CUR);
if (off == -1)
return -1;
} else
off = 0;
- return off + fp->fc_cur;
+ return off + cap->sc_cur;
}

Return to:

Send suggestions and report system problems to the System administrator.