From e43f8026923e57a5a61bff29254399fd68119f1d Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 20 Jan 2017 12:55:43 +0100 Subject: lib: Fix return value and typo in fqueue --- include/ouroboros/fqueue.h | 2 +- src/lib/dev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ouroboros/fqueue.h b/include/ouroboros/fqueue.h index d34665d6..254648e6 100644 --- a/include/ouroboros/fqueue.h +++ b/include/ouroboros/fqueue.h @@ -59,4 +59,4 @@ int flow_event_wait(flow_set_t * set, fqueue_t * fq, const struct timespec * timeout); -#endif /* OUROBOROS_SELECT_H */ +#endif /* OUROBOROS_FQUEUE_H */ diff --git a/src/lib/dev.c b/src/lib/dev.c index 8cd8cd53..c62fea40 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -1094,7 +1094,7 @@ int flow_event_wait(struct flow_set * set, return -EINVAL; if (fq->fqsize > 0) - return 0; + return fq->fqsize; assert(!fq->next); -- cgit v1.2.3