diff options
Diffstat (limited to 'tell.c')
-rw-r--r-- | tell.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; } |