summaryrefslogtreecommitdiff
path: root/code/ecp
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-06-06 14:30:47 +0200
committerUros Majstorovic <majstor@majstor.org>2020-06-06 14:30:47 +0200
commit56b4d84531010e828a543b00df0adaf7ae9cb674 (patch)
tree5b38cd2d73b66b380dba83090164a920bf018484 /code/ecp
parent711628fbff8bd0b529066eac0d6bdcc328f2ebe3 (diff)
ecp_conn_handler_new_t typedef fixed
Diffstat (limited to 'code/ecp')
-rw-r--r--code/ecp/core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/ecp/core.h b/code/ecp/core.h
index 7e37881..f3ed92a 100644
--- a/code/ecp/core.h
+++ b/code/ecp/core.h
@@ -151,7 +151,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 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);
@@ -253,7 +253,7 @@ typedef struct ECPSocket {
unsigned char key_curr;
ECPSockCTable conn;
ECPTimer timer;
- ecp_conn_handler_new_t *conn_new;
+ ecp_conn_handler_new_t conn_new;
#ifdef ECP_WITH_PTHREAD
pthread_t rcvr_thd;
pthread_mutex_t mutex;