diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-10-13 05:22:42 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-10-13 05:22:42 +0200 |
commit | 850ce8bb7a447e1d2500d5dac0b0003bb4412c37 (patch) | |
tree | f49b3ac65242cef0157ccb98cbcf5a97ceb5fdcb /code | |
parent | ca2d9002fcbebcf37f48944dd8d67e90c186ce4f (diff) |
fixed TODO
Diffstat (limited to 'code')
-rw-r--r-- | code/ecp/TODO | 2 | ||||
-rw-r--r-- | code/ecp/core.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/code/ecp/TODO b/code/ecp/TODO index f48cd69..982e382 100644 --- a/code/ecp/TODO +++ b/code/ecp/TODO @@ -6,6 +6,6 @@ rbuf: - implement _wait variants of open / send -- msgq should subtract ECP_MTYPE_SYS from mtype +- msgq should subtract ECP_MAX_MTYPE_SYS from mtype (make ECPConnMsgQ smaller) - consider adding one buffer for all msgs (frag. issue) diff --git a/code/ecp/core.h b/code/ecp/core.h index 3c6a488..dda96c5 100644 --- a/code/ecp/core.h +++ b/code/ecp/core.h @@ -101,12 +101,12 @@ typedef uint32_t ecp_ack_t; typedef uint32_t ecp_cts_t; #define ECP_CTS_HALF ((ecp_cts_t)1 << (sizeof(ecp_cts_t) * 8 - 1)) -#define ECP_CTS_LT(a, b) ((ecp_cts_t)((ecp_cts_t)(a) - (ecp_cts_t)(b)) > ECP_CTS_HALF) +#define ECP_CTS_LT(a,b) ((ecp_cts_t)((ecp_cts_t)(a) - (ecp_cts_t)(b)) > ECP_CTS_HALF) #define ECP_CTS_LTE(a,b) ((ecp_cts_t)((ecp_cts_t)(b) - (ecp_cts_t)(a)) < ECP_CTS_HALF) typedef uint32_t ecp_pts_t; #define ECP_PTS_HALF ((ecp_pts_t)1 << (sizeof(ecp_pts_t) * 8 - 1)) -#define ECP_PTS_LT(a, b) ((ecp_pts_t)((ecp_pts_t)(a) - (ecp_pts_t)(b)) > ECP_PTS_HALF) +#define ECP_PTS_LT(a,b) ((ecp_pts_t)((ecp_pts_t)(a) - (ecp_pts_t)(b)) > ECP_PTS_HALF) #define ECP_PTS_LTE(a,b) ((ecp_pts_t)((ecp_pts_t)(b) - (ecp_pts_t)(a)) < ECP_PTS_HALF) typedef uint32_t ecp_seq_t; |