From 6453bdc03a0d02bde8a08fb9857cf6e5c317bfb6 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Wed, 21 Jun 2017 11:26:48 +0200 Subject: 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 --- src/lib/dev.c | 16 ++++++++-------- 1 file 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 #include #include +#include +#include #include #include #include @@ -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, -- cgit v1.2.3