summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-06-21 11:26:48 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-06-21 11:26:48 +0200
commit6453bdc03a0d02bde8a08fb9857cf6e5c317bfb6 (patch)
treed5a384272b52874393ebb88f4265e5602913d77f
parentce0ecb86739583d0b134fdf0f44d0e7372507e2e (diff)
downloadouroboros-6453bdc03a0d02bde8a08fb9857cf6e5c317bfb6.tar.gz
ouroboros-6453bdc03a0d02bde8a08fb9857cf6e5c317bfb6.zip
lib: include missing headers in dev.c
The dev.c source file had some missing include headers. This PR fixes inconsistencies between the definitions and declarations in ipcp-dev.h
-rw-r--r--src/lib/dev.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index aa9d8bc5..3cdcc4d3 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -24,6 +24,8 @@
#include <ouroboros/config.h>
#include <ouroboros/errno.h>
#include <ouroboros/dev.h>
+#include <ouroboros/ipcp-dev.h>
+#include <ouroboros/local-dev.h>
#include <ouroboros/sockets.h>
#include <ouroboros/fcntl.h>
#include <ouroboros/bitmap.h>
@@ -1122,10 +1124,10 @@ int ipcp_create_r(pid_t api,
return ret;
}
-int ipcp_flow_req_arr(pid_t api,
- uint8_t * dst,
- size_t len,
- qoscube_t cube)
+int ipcp_flow_req_arr(pid_t api,
+ const uint8_t * dst,
+ size_t len,
+ qoscube_t cube)
{
irm_msg_t msg = IRM_MSG__INIT;
irm_msg_t * recv_msg = NULL;
@@ -1140,7 +1142,7 @@ int ipcp_flow_req_arr(pid_t api,
msg.api = api;
msg.has_hash = true;
msg.hash.len = len;
- msg.hash.data = dst;
+ msg.hash.data = (uint8_t *) dst;
msg.has_qoscube = true;
msg.qoscube = cube;
@@ -1349,7 +1351,7 @@ int ipcp_sdb_reserve(struct shm_du_buff ** sdb,
return 0;
}
-int ipcp_flow_fini(int fd)
+void ipcp_flow_fini(int fd)
{
struct shm_rbuff * rx_rb;
@@ -1362,8 +1364,6 @@ int ipcp_flow_fini(int fd)
pthread_rwlock_unlock(&ai.flows_lock);
shm_rbuff_fini(rx_rb);
-
- return 0;
}
int ipcp_flow_get_qoscube(int fd,