summaryrefslogtreecommitdiff
path: root/code/core/msgq.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-08-22 05:44:21 +0200
committerUros Majstorovic <majstor@majstor.org>2017-08-22 05:44:21 +0200
commit680922c97ca94e832e75b20f5aa22a00a6a80420 (patch)
tree52c2427cc96782d2cee5541a29296d62ef26f2fd /code/core/msgq.c
parent050bf97c2dc6c22e7b3134e281ee892e5351439f (diff)
seq implemented; conn reset implemented
Diffstat (limited to 'code/core/msgq.c')
-rw-r--r--code/core/msgq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/core/msgq.c b/code/core/msgq.c
index 4c1252b..7356eb8 100644
--- a/code/core/msgq.c
+++ b/code/core/msgq.c
@@ -89,7 +89,7 @@ int ecp_conn_msgq_push(ECPConnection *conn, ecp_seq_t seq, unsigned char mtype)
msgq->seq_msg[mtype][MSG_IDX_MASK(msgq->idx_w[mtype])] = seq;
msgq->idx_w[mtype]++;
- if (ECP_RBUF_SEQ_LT(msgq->seq_max, seq)) msgq->seq_max = seq;
+ if (ECP_SEQ_LT(msgq->seq_max, seq)) msgq->seq_max = seq;
return ECP_OK;
}