From ae52e2507afb2dcb43424ddf96067b5da52f20ee Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 6 Jun 2020 14:35:33 +0200 Subject: ecp_conn_alloc_t/ecp_conn_free_t typedefs fixed --- code/ecp/core.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/ecp/core.h b/code/ecp/core.h index 9ffff20..946213d 100644 --- a/code/ecp/core.h +++ b/code/ecp/core.h @@ -154,8 +154,8 @@ 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 struct ECPConnection * ecp_conn_alloc_t (unsigned char t); -typedef void ecp_conn_free_t (struct ECPConnection *c); +typedef struct ECPConnection * (*ecp_conn_alloc_t) (unsigned char t); +typedef void (*ecp_conn_free_t) (struct ECPConnection *c); typedef int ecp_conn_create_t (struct ECPConnection *c, unsigned char *msg, size_t sz); typedef void ecp_conn_destroy_t (struct ECPConnection *c); typedef ssize_t ecp_conn_open_t (struct ECPConnection *c); @@ -238,8 +238,8 @@ typedef struct ECPSockCTable { typedef struct ECPContext { ecp_rng_t rng; - ecp_conn_alloc_t *conn_alloc; - ecp_conn_free_t *conn_free; + ecp_conn_alloc_t conn_alloc; + ecp_conn_free_t conn_free; ECPConnHandler *handler[ECP_MAX_CTYPE]; } ECPContext; -- cgit v1.2.3