diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-06-06 14:33:34 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-06-06 14:33:34 +0200 |
commit | ac9ff0db66059df15dd6e71db9c7ff5e7f7ea7b5 (patch) | |
tree | 0b957a39cd16cea2dc5be288829056aeac54c5dc /code/ecp/core.h | |
parent | 56b4d84531010e828a543b00df0adaf7ae9cb674 (diff) |
ecp_conn_handler_msg_t typedef fixed
Diffstat (limited to 'code/ecp/core.h')
-rw-r--r-- | code/ecp/core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/ecp/core.h b/code/ecp/core.h index f3ed92a..9ffff20 100644 --- a/code/ecp/core.h +++ b/code/ecp/core.h @@ -152,7 +152,7 @@ struct ECPFragIter; typedef int (*ecp_rng_t) (void *, size_t); typedef int (*ecp_conn_handler_new_t) (struct ECPSocket *s, struct ECPConnection *p, unsigned char *msg, size_t sz, struct ECPConnection **c); -typedef ssize_t ecp_conn_handler_msg_t (struct ECPConnection *c, ecp_seq_t s, unsigned char t, unsigned char *msg, ssize_t sz, struct ECP2Buffer *b); +typedef ssize_t (*ecp_conn_handler_msg_t) (struct ECPConnection *c, ecp_seq_t s, unsigned char t, unsigned char *msg, ssize_t sz, struct ECP2Buffer *b); typedef struct ECPConnection * ecp_conn_alloc_t (unsigned char t); typedef void ecp_conn_free_t (struct ECPConnection *c); @@ -217,7 +217,7 @@ typedef struct ECPFragIter { } ECPFragIter; typedef struct ECPConnHandler { - ecp_conn_handler_msg_t *msg[ECP_MAX_MTYPE]; + ecp_conn_handler_msg_t msg[ECP_MAX_MTYPE]; ecp_conn_create_t *conn_create; ecp_conn_destroy_t *conn_destroy; ecp_conn_open_t *conn_open; |