aboutsummaryrefslogtreecommitdiff
path: root/runcap.h
diff options
context:
space:
mode:
Diffstat (limited to 'runcap.h')
-rw-r--r--runcap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runcap.h b/runcap.h
index 3ed907d..0ece8e7 100644
--- a/runcap.h
+++ b/runcap.h
@@ -90,12 +90,12 @@ runcap_get_capture(struct runcap *rc, int stream)
int runcap_getc(struct runcap *rc, int stream, char *cp);
ssize_t runcap_getline(struct runcap *rc, int stream, char **pstr, size_t *psize);
off_t runcap_tell(struct runcap *rc, int stream);
-int runcap_seek(struct runcap *rc, int stream, off_t off, int whence);
+off_t runcap_seek(struct runcap *rc, int stream, off_t off, int whence);
static inline int
runcap_rewind(struct runcap *rc, int stream)
{
- return runcap_seek(rc, stream, 0, 0);
+ return runcap_seek(rc, stream, 0, 0) != 0;
}
#endif

Return to:

Send suggestions and report system problems to the System administrator.