summaryrefslogtreecommitdiff
path: root/code/core/msgq.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-09-09 12:43:40 +0200
committerUros Majstorovic <majstor@majstor.org>2017-09-09 12:43:40 +0200
commit4e0c427c546a6d664642f68cc6d11f879c537d29 (patch)
treeac436ce8da05c52ee1e0e1b1a7bad1f4008c8afe /code/core/msgq.c
parent8d3e76d078cf1fd9d295391735ca4208eaa5f3de (diff)
fragments test added
Diffstat (limited to 'code/core/msgq.c')
-rw-r--r--code/core/msgq.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/code/core/msgq.c b/code/core/msgq.c
index 743478f..45df608 100644
--- a/code/core/msgq.c
+++ b/code/core/msgq.c
@@ -21,9 +21,7 @@ static struct timespec *abstime_ts(struct timespec *ts, ecp_cts_t msec) {
return ts;
}
-int ecp_conn_msgq_create(ECPConnection *conn) {
- ECPRBRecv *buf = conn->rbuf.recv;
- ECPConnMsgQ *msgq = buf ? &buf->msgq : NULL;
+int ecp_conn_msgq_create(ECPConnMsgQ *msgq) {
int i;
int rv;
@@ -50,9 +48,7 @@ int ecp_conn_msgq_create(ECPConnection *conn) {
return ECP_OK;
}
-void ecp_conn_msgq_destroy(ECPConnection *conn) {
- ECPRBRecv *buf = conn->rbuf.recv;
- ECPConnMsgQ *msgq = buf ? &buf->msgq : NULL;
+void ecp_conn_msgq_destroy(ECPConnMsgQ *msgq) {
int i;
if (msgq == NULL) return;