summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/man/fqueue.32
-rw-r--r--include/ouroboros/fqueue.h2
-rw-r--r--src/lib/dev.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/doc/man/fqueue.3 b/doc/man/fqueue.3
index 3bef1297..cbc8ee4e 100644
--- a/doc/man/fqueue.3
+++ b/doc/man/fqueue.3
@@ -21,7 +21,7 @@ on flows
\fBint fqueue_type(fqueue_t * \fIfq\fB);
-\fBint fevent(fset_t * \fIset\fB, fqueue_t * \fIfq\fB,
+\fBssize_t fevent(fset_t * \fIset\fB, fqueue_t * \fIfq\fB,
const struct timespec * \fItimeo\fB);
Compile and link with \fI-louroboros-dev\fR.
diff --git a/include/ouroboros/fqueue.h b/include/ouroboros/fqueue.h
index 797e3af6..60978491 100644
--- a/include/ouroboros/fqueue.h
+++ b/include/ouroboros/fqueue.h
@@ -68,7 +68,7 @@ int fqueue_next(fqueue_t * fq);
enum fqtype fqueue_type(fqueue_t * fq);
-int fevent(fset_t * set,
+ssize_t fevent(fset_t * set,
fqueue_t * fq,
const struct timespec * timeo);
diff --git a/src/lib/dev.c b/src/lib/dev.c
index c427e20c..8647bea9 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1321,9 +1321,9 @@ enum fqtype fqueue_type(struct fqueue * fq)
return fq->fqueue[fq->next - 1];
}
-int fevent(struct flow_set * set,
- struct fqueue * fq,
- const struct timespec * timeo)
+ssize_t fevent(struct flow_set * set,
+ struct fqueue * fq,
+ const struct timespec * timeo)
{
ssize_t ret;
struct timespec abstime;