summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-03-15 08:58:55 +0100
committerSander Vrijders <sander@ouroboros.rocks>2020-03-15 14:26:49 +0100
commitb977090a7692acada4b81677e88c5a5e60a153c3 (patch)
tree781d5d31da6986b459d0f93c639c5dfccc7127d5 /src
parentc80c93f11dbfb1b0c07f9a6f8b8d91024e5db507 (diff)
downloadouroboros-b977090a7692acada4b81677e88c5a5e60a153c3.tar.gz
ouroboros-b977090a7692acada4b81677e88c5a5e60a153c3.zip
lib: Change return type of fevent to ssize_t
The return type was still an int, but since it returns the number of events, it should be an ssize_t. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src')
-rw-r--r--src/lib/dev.c6
1 files changed, 3 insertions, 3 deletions
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;