summaryrefslogtreecommitdiff
path: root/code/ecp/core.h
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-06-06 14:28:01 +0200
committerUros Majstorovic <majstor@majstor.org>2020-06-06 14:28:01 +0200
commit711628fbff8bd0b529066eac0d6bdcc328f2ebe3 (patch)
tree6b7bccbeeb0cb5fb9f14052b892a4ae013a2c6e9 /code/ecp/core.h
parent7c253d76ff15e81a4c45f828176d7d24b99132e3 (diff)
ecp_rng_t typedef fixed
Diffstat (limited to 'code/ecp/core.h')
-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 419b563..7e37881 100644
--- a/code/ecp/core.h
+++ b/code/ecp/core.h
@@ -149,7 +149,7 @@ struct ECPFragIter;
#include "rbuf.h"
#endif
-typedef int ecp_rng_t (void *, size_t);
+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);
@@ -237,7 +237,7 @@ typedef struct ECPSockCTable {
} ECPSockCTable;
typedef struct ECPContext {
- ecp_rng_t *rng;
+ ecp_rng_t rng;
ecp_conn_alloc_t *conn_alloc;
ecp_conn_free_t *conn_free;
ECPConnHandler *handler[ECP_MAX_CTYPE];