summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2023-02-09 17:38:29 +0100
committerSander Vrijders <[email protected]>2023-02-13 21:10:10 +0100
commit3b5d1a8f495d5b6bda72f9962516d5a1e273481b (patch)
treef0a64a13260e930148188db70d3e9dcf04ddd5ee /src/lib/dev.c
parentb0102d9dc3cb8b543e4e079ce68f1e06970b1cbb (diff)
downloadouroboros-3b5d1a8f495d5b6bda72f9962516d5a1e273481b.tar.gz
ouroboros-3b5d1a8f495d5b6bda72f9962516d5a1e273481b.zip
lib: Fix prototypes missing 'void'
Found by Clang version 15. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/dev.c')
-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 8bc840a5..a68af46e 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1466,7 +1466,7 @@ ssize_t flow_read(int fd,
/* fqueue functions. */
-struct flow_set * fset_create()
+struct flow_set * fset_create(void)
{
struct flow_set * set;
@@ -1509,7 +1509,7 @@ void fset_destroy(struct flow_set * set)
free(set);
}
-struct fqueue * fqueue_create()
+struct fqueue * fqueue_create(void)
{
struct fqueue * fq = malloc(sizeof(*fq));
if (fq == NULL)
@@ -1929,7 +1929,7 @@ int ipcp_flow_read(int fd,
assert(flow->flow_id >= 0);
- while ((idx = frcti_queued_pdu(flow->frcti)) < 0) {
+ while (frcti_queued_pdu(flow->frcti) < 0) {
pthread_rwlock_unlock(&ai.lock);
idx = flow_rx_sdb(flow, sdb, false, NULL);